Teach wmlscope about unit_image,
...and clean up one call to make types clearer.
This commit is contained in:
parent
87da82be3a
commit
381931b3a7
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@
|
|||
message= _ "She’s... She’s beautiful."
|
||||
[/message]
|
||||
|
||||
{UNDEAD_INTEL (Vampire Lady) (Midnight Queen) ( _ "Midnight Queen") "unit_image" 2 ({X}) ({Y})}
|
||||
{UNDEAD_INTEL (Vampire Lady) "Midnight Queen" _"Midnight Queen" "unit_image" 2 ({X}) ({Y})}
|
||||
# wmllint: recognize Midnight Queen
|
||||
|
||||
{LOYAL_UNIT 3 (Blood Bat) ({X}) ({Y})}
|
||||
|
|
|
@ -212,7 +212,7 @@ def actualtype(a):
|
|||
atype = "alignment"
|
||||
elif a.startswith("{") or a.endswith("}") or a.startswith("$"):
|
||||
atype = None # Can't tell -- it's a macro expansion
|
||||
elif re.match(image_reference, a):
|
||||
elif re.match(image_reference, a) or a == "unit_image":
|
||||
atype = "image"
|
||||
elif re.match(r"(\*|[A-Z][a-z]+)\^([A-Z][a-z\\|/]+\Z)?", a):
|
||||
atype = "terrain_code"
|
||||
|
|
Loading…
Add table
Reference in a new issue