Made LIMIT_CONTEMPORANEOUS_RECRUITS able to handle...

...a comma-separated list of sides.
This commit is contained in:
Lari Nieminen 2008-12-26 10:14:41 +00:00
parent b89783b5ca
commit 7e57b8dec1

View File

@ -21,36 +21,40 @@
name=side turn
first_time_only=no
{VARIABLE LCR_temp {SIDE}}
[if]
[variable]
name=side_number
equals={SIDE}
name=LCR_temp
contains=$side_number
[/variable]
[then]
[if]
[have_unit]
side={SIDE}
side=$side_number
type={TYPE}
count="{LIMIT_NUMBER}-99999"
[/have_unit]
[then]
[disallow_recruit]
side={SIDE}
side=$side_number
type={TYPE}
[/disallow_recruit]
[/then]
[else]
[allow_recruit]
side={SIDE}
side=$side_number
type={TYPE}
[/allow_recruit]
[/else]
[/if]
[/then]
[/if]
{CLEAR_VARIABLE LCR_temp}
[/event]
[event]
@ -64,14 +68,14 @@
[if]
[have_unit]
side={SIDE}
side=$side_number
type={TYPE}
count="{LIMIT_NUMBER}-99999"
[/have_unit]
[then]
[disallow_recruit]
side={SIDE}
side=$side_number
type={TYPE}
[/disallow_recruit]
[/then]