ref: 569dec4a852313c98e8749edda65eec3bae6b164
parent: a28311ff90e1ef4054929471837e56fc4b8ea4ff
author: Bryan Bishop <[email protected]>
date: Sat May 19 23:10:40 EDT 2012
initial MoveParam class
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -65,6 +65,8 @@
from trainers import *
+from move_constants import moves
+
# for fixing trainer_group_names
import re
@@ -1720,6 +1722,10 @@
trainer_group_id = self.byte
return trainer_group_names[trainer_group_id]["constant"]
+class MoveParam(SingleByteParam):
+ def to_asm(self):
+ return moves[self.byte]
+
class MenuDataPointerParam(PointerLabelParam):
#read menu data at the target site
#raise NotImplementedError, bryan_message
@@ -3708,9 +3714,6 @@
output += self.party_mons.to_asm()
output += "\n; last_address="+hex(self.last_address)+" size="+str(self.size)
return output
-
-# TODO: MoveParam should map to an actual attack
-MoveParam = SingleByteParam
class TrainerPartyMonParser:
""" Just a generic trainer party mon parser.