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

This commit is contained in:
Bryan Bishop
2012-05-16 12:44:55 -05:00
parent 2d763b53a6
commit 079afeea46
2 changed files with 10 additions and 2 deletions

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])