From d0aaf36be9de17c02fd80ccf8964362e31be2063 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Wed, 16 May 2012 12:44:55 -0500 Subject: fix preprocessor/givepoke for variable-number-of-parameter macros original-commit-id: 079afeea4626d21a179f3c836e3f1d1c9a1f6d83 --- crystal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crystal.py b/crystal.py index e26cf6d..efe55b1 100644 --- a/crystal.py +++ b/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]) -- cgit v1.2.3