diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-16 12:44:55 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-16 12:44:55 -0500 |
commit | d0aaf36be9de17c02fd80ccf8964362e31be2063 (patch) | |
tree | 60ef89195c7faf79a22d56c7629953a247c24436 /crystal.py | |
parent | 30af3020f2c07b08d3c882517fcfeb810dd23a16 (diff) |
fix preprocessor/givepoke for variable-number-of-parameter macros
original-commit-id: 079afeea4626d21a179f3c836e3f1d1c9a1f6d83
Diffstat (limited to 'crystal.py')
-rw-r--r-- | crystal.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]) |