Fix for bug #13792: Random villagers in THoT-5 doesn't work properly.
This commit is contained in:
parent
c04bf21eb5
commit
7944050124
1 changed files with 8 additions and 7 deletions
|
@ -211,9 +211,13 @@
|
|||
[/else]
|
||||
[/if]
|
||||
# Now place the indigs
|
||||
[set_variable]
|
||||
name=indig_countdown
|
||||
value=$indigs
|
||||
[/set_variable]
|
||||
[while]
|
||||
[variable]
|
||||
name=indigs
|
||||
name=indig_countdown
|
||||
greater_than=0
|
||||
[/variable]
|
||||
[do]
|
||||
|
@ -252,18 +256,14 @@
|
|||
[/then]
|
||||
[/if]
|
||||
[set_variable]
|
||||
name=indigs
|
||||
name=indig_countdown
|
||||
add=-1
|
||||
[/set_variable]
|
||||
[/do]
|
||||
[/while]
|
||||
{CLEAR_VARIABLE indigs}
|
||||
{CLEAR_VARIABLE indigs_countdown}
|
||||
# Perform appropriate notifications
|
||||
[if]
|
||||
[variable]
|
||||
name=possible_indig_locations.length
|
||||
greater_than=0
|
||||
[/variable]
|
||||
[variable]
|
||||
name=indigs
|
||||
greater_than=0
|
||||
|
@ -306,6 +306,7 @@
|
|||
[/else]
|
||||
[/if]
|
||||
{CLEAR_VARIABLE possible_indig_locations}
|
||||
{CLEAR_VARIABLE indigs}
|
||||
[/then]
|
||||
[/if]
|
||||
[/else]
|
||||
|
|
Loading…
Add table
Reference in a new issue