Address the bandit-popup bug reported by Mordante and attached to bug #10953;
clear the village even if the number of bandits generates is 0.
This commit is contained in:
parent
efedfafd56
commit
55cee08b61
1 changed files with 7 additions and 5 deletions
|
@ -159,6 +159,10 @@
|
|||
not_equals=yes
|
||||
[/variable]
|
||||
[then]
|
||||
[set_variable]
|
||||
name=cleared_$x1|,$y1|_village
|
||||
value=yes
|
||||
[/set_variable]
|
||||
# Compute the number of indigs that will pop up
|
||||
[if]
|
||||
[variable]
|
||||
|
@ -221,7 +225,9 @@
|
|||
[/unit]
|
||||
[/then]
|
||||
[/if]
|
||||
[set_variable]
|
||||
[set_
|
||||
|
||||
variable]
|
||||
name=indigs
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
@ -235,10 +241,6 @@
|
|||
greater_than=0
|
||||
[/variable]
|
||||
[then]
|
||||
[set_variable]
|
||||
name=cleared_$x1|,$y1|_village
|
||||
value=yes
|
||||
[/set_variable]
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "The villagers are attacking us!"
|
||||
|
|
Loading…
Add table
Reference in a new issue