modernized the LIMIT_CONTEMPORANEOUS_RECRUITS macro

This commit is contained in:
Fabian Müller 2008-11-29 21:20:07 +00:00
parent 6544b9ed35
commit 3aca9c4d18

View file

@ -25,22 +25,13 @@
[/variable]
[then]
[store_unit]
[filter]
[if]
[have_unit]
side={SIDE}
type={TYPE}
[/filter]
kill=no
variable=LIMIT_CONTEMPORANEOUS_RECRUITS_temp
[/store_unit]
[if]
[variable]
name=LIMIT_CONTEMPORANEOUS_RECRUITS_temp.length
greater_than_equal_to={LIMIT_NUMBER}
[/variable]
count="{LIMIT_NUMBER}-99999"
[/have_unit]
[then]
[disallow_recruit]
side={SIDE}
@ -55,8 +46,6 @@
[/allow_recruit]
[/else]
[/if]
{CLEAR_VARIABLE LIMIT_CONTEMPORANEOUS_RECRUITS_temp}
[/then]
[/if]
[/event]
@ -70,21 +59,12 @@
type={TYPE}
[/filter]
[store_unit]
[filter]
[if]
[have_unit]
side={SIDE}
type={TYPE}
[/filter]
kill=no
variable=LIMIT_CONTEMPORANEOUS_RECRUITS_temp
[/store_unit]
[if]
[variable]
name=LIMIT_CONTEMPORANEOUS_RECRUITS_temp.length
greater_than_equal_to={LIMIT_NUMBER}
[/variable]
count="{LIMIT_NUMBER}-99999"
[/have_unit]
[then]
[disallow_recruit]
@ -93,8 +73,6 @@
[/disallow_recruit]
[/then]
[/if]
{CLEAR_VARIABLE LIMIT_CONTEMPORANEOUS_RECRUITS_temp}
[/event]
#enddef