fix preprocessor/givepoke for variable-number-of-parameter macros

original-commit-id: 079afeea4626d21a179f3c836e3f1d1c9a1f6d83
This commit is contained in:
Bryan Bishop 2012-05-16 12:44:55 -05:00
parent 30af3020f2
commit d0aaf36be9

View File

@ -1871,6 +1871,8 @@ class GivePoke(Command):
4: {"name": "trainer_name_pointer", "class": MultiByteParam}, #should probably use TextLabelParam
5: {"name": "pkmn_nickname", "class": MultiByteParam}, #XXX TextLabelParam ?
}
allowed_lengths = [4, 6]
def parse(self):
self.params = {}
byte = ord(rom[self.address])