Minor wmllint/wmlscope cleanups.
This commit is contained in:
parent
7b276c2db2
commit
d6cd819cbd
3 changed files with 4 additions and 3 deletions
|
@ -402,6 +402,7 @@
|
|||
|
||||
# Birds reach Thursagan's (variable) location
|
||||
|
||||
# wmllint: recognize Thursagan
|
||||
[event]
|
||||
name=moveto
|
||||
[filter]
|
||||
|
|
|
@ -176,12 +176,12 @@
|
|||
{CLEAR_VARIABLE temp_target_villages}
|
||||
#enddef
|
||||
|
||||
#define CAPTURE_VILLAGES_OF_TYPE TYPE SIDE X Y RADIUS
|
||||
#define CAPTURE_VILLAGES_OF_TYPE TERRAIN SIDE X Y RADIUS
|
||||
# Change ownership of the villages on a specified terrain type
|
||||
# near a specified location.
|
||||
{CAPTURE_FILTERED_VILLAGES {SIDE}
|
||||
(
|
||||
terrain={TYPE}
|
||||
terrain={TERRAIN}
|
||||
[and]
|
||||
x,y={X},{Y}
|
||||
radius={RADIUS}
|
||||
|
|
|
@ -180,7 +180,7 @@ def actualtype(a):
|
|||
atype = None # Can't tell -- it's a macro expansion
|
||||
elif re.match(image_reference, a):
|
||||
atype = "image"
|
||||
elif re.match(r"(\*|[A-Z][a-z]+)\^[A-Z][a-z\\|/]+\Z", a):
|
||||
elif re.match(r"(\*|[A-Z][a-z]+)\^([A-Z][a-z\\|/]+\Z)?", a):
|
||||
atype = "terrain_code"
|
||||
elif a.endswith(".wav") or a.endswith(".ogg"):
|
||||
atype = "sound"
|
||||
|
|
Loading…
Add table
Reference in a new issue