Simplified CAPTURE_FILTERED_VILLAGES...
...according to [capture_village] now accepting a SLF. Actually, it should be deprecated and substituted with the tag in the other macros which use it.
This commit is contained in:
parent
45566b0cb3
commit
db0589069b
1 changed files with 3 additions and 12 deletions
|
@ -161,19 +161,10 @@
|
|||
|
||||
#define CAPTURE_FILTERED_VILLAGES SIDE FILTER
|
||||
# Change ownership of villages matching the specified location filter.
|
||||
[store_locations]
|
||||
[capture_village]
|
||||
side={SIDE}
|
||||
{FILTER}
|
||||
variable=temp_target_villages
|
||||
[/store_locations]
|
||||
|
||||
{FOREACH temp_target_villages i}
|
||||
[capture_village]
|
||||
side={SIDE}
|
||||
x,y=$temp_target_villages[$i].x,$temp_target_villages[$i].y
|
||||
[/capture_village]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE temp_target_villages}
|
||||
[/capture_village]
|
||||
#enddef
|
||||
|
||||
#define CAPTURE_VILLAGES_OF_TYPE TERRAIN SIDE X Y RADIUS
|
||||
|
|
Loading…
Add table
Reference in a new issue