mirror of https://github.com/pret/pokecrystal.git
Merge branch 'remove-another-moneybyteparam-special-case' into master
This commit is contained in:
commit
d46d1901c2
|
@ -12,7 +12,6 @@ from extras.pokemontools.crystal import (
|
||||||
DataByteWordMacro,
|
DataByteWordMacro,
|
||||||
PointerLabelBeforeBank,
|
PointerLabelBeforeBank,
|
||||||
PointerLabelAfterBank,
|
PointerLabelAfterBank,
|
||||||
MoneyByteParam,
|
|
||||||
ItemFragment,
|
ItemFragment,
|
||||||
TextEndingCommand,
|
TextEndingCommand,
|
||||||
text_command_classes,
|
text_command_classes,
|
||||||
|
@ -555,8 +554,8 @@ def macro_translator(macro, token, line):
|
||||||
output += ("db " + params[index+1].strip() + "\n")
|
output += ("db " + params[index+1].strip() + "\n")
|
||||||
index += 2
|
index += 2
|
||||||
correction += 1
|
correction += 1
|
||||||
elif size == 3 and issubclass(param_klass, MoneyByteParam):
|
elif size == 3 and "from_asm" in dir(param_klass):
|
||||||
output += ("db " + MoneyByteParam.from_asm(param) + "\n")
|
output += ("db " + param_klass.from_asm(param) + "\n")
|
||||||
index += 1
|
index += 1
|
||||||
else:
|
else:
|
||||||
raise Exception, "dunno what to do with this macro " + \
|
raise Exception, "dunno what to do with this macro " + \
|
||||||
|
|
Loading…
Reference in New Issue