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:
J. Tyne 2013-01-31 06:01:11 +00:00
parent b98fcd866e
commit c9627819b2

View file

@ -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]