Use [filter_condition] in second part of LIMIT_CONTEMPORANEOUS_RECRUITS
This commit is contained in:
parent
10023d79a6
commit
75e7d41425
1 changed files with 6 additions and 11 deletions
|
@ -20,7 +20,6 @@
|
|||
[event]
|
||||
name=side turn
|
||||
first_time_only=no
|
||||
|
||||
[filter_condition]
|
||||
# Note: we cannot simply check if {SIDES} contains $side_number,
|
||||
# because that would break for side numbers >9 ("12" would contain
|
||||
|
@ -61,26 +60,22 @@
|
|||
[event]
|
||||
name=recruit
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
side={SIDES}
|
||||
type={TYPE}
|
||||
[/filter]
|
||||
|
||||
[if]
|
||||
[filter_condition]
|
||||
[have_unit]
|
||||
side=$side_number
|
||||
type={TYPE}
|
||||
count="{LIMIT_NUMBER}-99999"
|
||||
[/have_unit]
|
||||
[/filter_condition]
|
||||
|
||||
[then]
|
||||
[disallow_recruit]
|
||||
side=$side_number
|
||||
type={TYPE}
|
||||
[/disallow_recruit]
|
||||
[/then]
|
||||
[/if]
|
||||
[disallow_recruit]
|
||||
side=$side_number
|
||||
type={TYPE}
|
||||
[/disallow_recruit]
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue