From 3f8787b4d8cfd2f63c6a26989f8b351b31e23d47 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 20 May 2012 03:33:35 -0500 Subject: make TrainerFragment.to_asm() use trainer constants original-commit-id: 609e94774caaad5ea68770d771a0aa6696c32b32 --- crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crystal.py b/crystal.py index 26f9add..ab32beb 100644 --- a/crystal.py +++ b/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" -- cgit v1.2.3