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 | 079afeea4626d21a179f3c836e3f1d1c9a1f6d83 (patch) | |
tree | b64f056ba5a6190b1e3ce0bb66b401cfe37ad728 /extras/crystal.py | |
parent | 2d763b53a6071b232794795c510363b280f45a89 (diff) |
fix preprocessor/givepoke for variable-number-of-parameter macros
Diffstat (limited to 'extras/crystal.py')
-rw-r--r-- | extras/crystal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index e26cf6dda..efe55b1bb 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -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]) |