possible lava expansion fixes... more to come

This commit is contained in:
Patrick Parker 2007-08-08 22:17:44 +00:00
parent 269cfa25dd
commit d575e30873

View file

@ -80,7 +80,7 @@
#
# Initialize the lava growing effect
#
{VARIABLE lava_count 1}
{VARIABLE lava_count 0}
{VARIABLE lava_x 25}
{VARIABLE lava_y 35}
[terrain]
@ -211,39 +211,44 @@
[/variable]
[then]
{TREMOR}
# {VARIABLE_OP lava_count add 1}
# [store_locations]
# variable=lava_flow_hexes
# x=$lava_x
# y=$lava_y
# radius=$lava_count
# [and]
# terrain=Xu
# [/and]
# [/store_locations]
# {FOREACH lava_flow_hexes i}
# {VARIABLE_OP temp_x to_variable lava_flow_hexes[$i].x}
# {VARIABLE_OP temp_y to_variable lava_flow_hexes[$i].y}
# [terrain]
# x=$temp_x
# y=$temp_y
# letter=Ql
# [/terrain]
# {NEXT i}
#
{VARIABLE_OP lava_count add 1}
[store_locations]
variable=lava_flow_hexes
x=$lava_x
y=$lava_y
radius=$lava_count
[and]
terrain=Xu
[/and]
[/store_locations]
{FOREACH lava_flow_hexes i}
{VARIABLE temp_x lava_flow_hexes[$i].x}
{VARIABLE temp_y lava_flow_hexes[$i].y}
[terrain]
x=$temp_x
y=$temp_y
letter=Ql
[/terrain]
{NEXT i}
# Reset the counter if it gets too large (it slows things down)
#
# [if]
# [variable]
# name=lava_count
# numerical_equals=3
# [/variable]
# [then]
# {VARIABLE lava_count 0}
# {VARIABLE_OP lava_x random (10..40)}
# {VARIABLE_OP lava_y random (15..45)}
# [/then]
# [/if]
[if]
[variable]
name=lava_count
numerical_equals=3
[/variable]
[then]
{VARIABLE lava_count 0}
{VARIABLE_OP lava_x random (10..40)}
{VARIABLE_OP lava_y random (15..45)}
[terrain]
x=$lava_x
y=$lava_y
letter=Ql
[/terrain]
[/then]
[/if]
[/then]
[/if]
{CLEAR_VARIABLE rumble_test}