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:
Anonymissimus 2010-09-20 19:42:12 +00:00
parent 45566b0cb3
commit db0589069b

View file

@ -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