diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-20 03:15:36 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-20 03:15:36 -0500 |
commit | de87a83a8d00abfb5f1ab3f4d3069f6f4756a2fc (patch) | |
tree | cc2bff3f4558282ad7e5ff5e5c33f17829ce6e6b /crystal.py | |
parent | 0ebf3397b25d530dca6a6452e513cf9032e40782 (diff) |
improve MoveParam to handle zeroed-out moves
original-commit-id: efd43a17b2869b02f88949dfc02d646a3fa718db
Diffstat (limited to 'crystal.py')
-rw-r--r-- | crystal.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1724,7 +1724,11 @@ class TrainerGroupParam(SingleByteParam): class MoveParam(SingleByteParam): def to_asm(self): - return moves[self.byte] + if self.byte in moves.keys(): + return moves[self.byte] + else: + # this happens for move=0 (no move) in trainer headers + return str(self.byte) class MenuDataPointerParam(PointerLabelParam): #read menu data at the target site |