mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-14 01:12:55 +00:00
Made LIMIT_CONTEMPORANEOUS_RECRUITS able to handle...
...a comma-separated list of sides.
This commit is contained in:
parent
b89783b5ca
commit
7e57b8dec1
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user