lava expansion on cave should work now

note there's still an offset bug with terrain= filtering for random
generated maps
This commit is contained in:
Patrick Parker 2007-08-09 04:26:42 +00:00
parent affe776867
commit 9b92d53839

View file

@ -217,18 +217,21 @@
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}
[if]
[variable]
name=lava_flow_hexes[$i].terrain
equals=Xu
[/variable]
[then]
[terrain]
x=$temp_x
y=$temp_y
x=$lava_flow_hexes[$i].x
y=$lava_flow_hexes[$i].y
letter=Ql
[/terrain]
[/then]
[/if]
{NEXT i}
# Reset the counter if it gets too large (it slows things down)