Address bug #16289: UtBS scenario 8 (Out of the frying pan) under too much water.

This commit is contained in:
Eric S. Raymond 2010-07-26 22:26:11 +00:00
parent b69af19d27
commit 9130b881e4

View file

@ -5690,6 +5690,14 @@
# 3. destroy any items in the new deep water
# 4. kill any units in deep water
#define NOT_SHALLOW_WATER_TO_KEEP
# some pools outside of the cave mustn't be turned to deep water.
[not]
x = 35, 35, 36, 42, 42, 43, 43, 60, 60, 61, 61, 62
y = 25, 26, 25, 20, 21, 21, 22, 4, 5, 4, 5, 5
[/not]
#enddef
[event]
name=new turn
first_time_only=no
@ -5712,6 +5720,7 @@
[store_locations]
[filter_adjacent_location]
terrain=Ww
{NOT_SHALLOW_WATER_TO_KEEP}
[/filter_adjacent_location]
terrain=!,Xu,Mm^Xm,Md,W*
@ -5720,6 +5729,7 @@
[store_locations]
terrain=Ww
{NOT_SHALLOW_WATER_TO_KEEP}
variable=shallow_to_deep_locs
[/store_locations]
@ -5799,6 +5809,7 @@
[/then]
[/if]
[/event]
#undef NOT_SHALLOW_WATER_TO_KEEP
# when water reaches escape passage, stop flooding and make it pour out
# into the valley