You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
improve MoveParam to handle zeroed-out moves
This commit is contained in:
@@ -1724,7 +1724,11 @@ class TrainerGroupParam(SingleByteParam):
|
||||
|
||||
class MoveParam(SingleByteParam):
|
||||
def to_asm(self):
|
||||
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
|
||||
|
Reference in New Issue
Block a user