enable wmllint to convert more old abilities and specials
I noticed that there were some additional weapon specials (marksman) and abilities (nightstalk, steadfast) that also had macros. I also saw examples of ability= keys that had comma-separated multiple values.
This commit is contained in:
parent
577d650122
commit
614d7f8861
1 changed files with 5 additions and 4 deletions
|
@ -1388,7 +1388,7 @@ def hack_syntax(filename, lines):
|
|||
if special.startswith("plague("):
|
||||
insertion += ws + baseindent*2 + "{WEAPON_SPECIAL_PLAGUE_TYPE " + special[7:-1] + "}\n"
|
||||
elif special in ("backstab", "berserk", "charge", "drain",
|
||||
"firststrike", "magical", "plague",
|
||||
"firststrike", "magical", "marksman", "plague",
|
||||
"poison", "slow", "stone", "swarm",):
|
||||
insertion += ws + baseindent*2 + "{WEAPON_SPECIAL_" + special.upper() + "}\n"
|
||||
else:
|
||||
|
@ -1408,8 +1408,8 @@ def hack_syntax(filename, lines):
|
|||
print "warning: can't convert ancient leadership ability"
|
||||
else:
|
||||
insertion += ws + baseindent*2 + "{ABILITY_LEADERSHIP_LEVEL_"+level+"}\n"
|
||||
elif ability in ("cures", "heals", "regenerates",
|
||||
"skirmisher", "illuminates",
|
||||
elif ability in ("cures", "heals", "nightstalk", "regenerates",
|
||||
"skirmisher", "steadfast", "illuminates",
|
||||
"teleport", "ambush",):
|
||||
insertion += ws + baseindent*2 + "{ABILITY_" + ability.upper() + "}\n"
|
||||
else:
|
||||
|
@ -1422,7 +1422,8 @@ def hack_syntax(filename, lines):
|
|||
if tag == "level":
|
||||
level = value
|
||||
if tag == "ability":
|
||||
abilities.append(value)
|
||||
for able in value.split(","):
|
||||
abilities.append(able.strip())
|
||||
lastability = i
|
||||
lines[i] = ""
|
||||
if tag == "special":
|
||||
|
|
Loading…
Add table
Reference in a new issue