Fix an incorrect macro translation.

This commit is contained in:
Eric S. Raymond 2007-10-05 09:37:53 +00:00
parent 541df15e2d
commit 043b25aec8
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@
damage=7
number=2
[specials]
{SPECIAL_CHARGE}
{WEAPON_SPECIAL_CHARGE}
[/specials]
[/attack]
[attack_anim]

View file

@ -822,11 +822,11 @@ def hack_syntax(filename, lines):
insertion = ws + baseindent + "[specials]\n"
for special in specials:
if special.startswith("plague("):
insertion += ws + baseindent*2 + "{SPECIAL_PLAGUE_TYPE " + special[7:-1] + "}\n"
insertion += ws + baseindent*2 + "{WEAPON_SPECIAL_PLAGUE_TYPE " + special[7:-1] + "}\n"
elif special in ("backstab", "berserk", "charge", "drain",
"firstrtrike", "magical", "plague",
"poison", "slow", "stone", "swarm",):
insertion += ws + baseindent*2 + "{SPECIAL_" + special.upper() + "}\n"
insertion += ws + baseindent*2 + "{WEAPON_SPECIAL_" + special.upper() + "}\n"
else:
print "Don't know how to convert '%s'" % special
insertion += ws + baseindent + "[/specials]\n"