Move a conditional earlier.
The logic is exactly the same, but this might read a bit better (and is marginally more efficient).
This commit is contained in:
parent
b98fcd866e
commit
c9627819b2
1 changed files with 6 additions and 4 deletions
|
@ -1017,23 +1017,25 @@ Note: You need to use the default map settings for the scenario to work right."
|
|||
name=id
|
||||
numerical_equals=3
|
||||
[/variable]
|
||||
[variable]
|
||||
name=weather[4].turns
|
||||
greater_than=0
|
||||
[/variable]
|
||||
[then]
|
||||
# Second snow happens half the time.
|
||||
{RANDOMIZE 2}
|
||||
[if]
|
||||
[variable]
|
||||
name=random
|
||||
equals=1
|
||||
[/variable]
|
||||
[variable]
|
||||
name=weather[4].turns
|
||||
greater_than=0
|
||||
[/variable]
|
||||
[then]
|
||||
{WEATHER_EVENT_AT $turn 4}
|
||||
[/then]
|
||||
[/if]
|
||||
[/then]
|
||||
[/if]
|
||||
# Go back to clear weather.
|
||||
{WEATHER_EVENT_AT $turn 0}
|
||||
[/do]
|
||||
[/while]
|
||||
|
|
Loading…
Add table
Reference in a new issue