summaryrefslogtreecommitdiff
path: root/extras/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-20 03:33:35 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-20 03:33:35 -0500
commit609e94774caaad5ea68770d771a0aa6696c32b32 (patch)
treeee5bb461f0d0ad5bc9b593968932f7e97d15bad4 /extras/crystal.py
parente44de6eedfaffed86ebb8c19b628025b6561e27f (diff)
make TrainerFragment.to_asm() use trainer constants
Diffstat (limited to 'extras/crystal.py')
-rw-r--r--extras/crystal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/crystal.py b/extras/crystal.py
index 26f9add54..ab32bebe5 100644
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3436,7 +3436,7 @@ class TrainerFragment(Command):
output += xspacing + "; bit/flag number\n"
output += xspacing + "dw $%.2x"%(self.params[0].parsed_number)
output += "\n\n"+xspacing+"; trainer group && trainer id\n"
- output += xspacing + "db %d, %d" % (self.params[1].byte, self.params[2].byte)
+ output += xspacing + "db %s, %s" % (self.params[1].to_asm(), self.params[2].to_asm())
output += "\n\n"+xspacing+"; text when seen\n"
output += xspacing + "dw " + self.params[3].to_asm()
output += "\n\n"+xspacing+"; text when trainer beaten\n"