From 6008b1a96c4079b6ca164f814cdd5fb26d568969 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 19 May 2012 18:28:23 -0500 Subject: [PATCH] pick up the third CAL trainer header --- extras/crystal.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extras/crystal.py b/extras/crystal.py index 03fa4ba82..6f9fe9978 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -3545,6 +3545,10 @@ class TrainerGroupHeader: min_id = min(trainer_group_maximums[self.group_id]) max_id = max(trainer_group_maximums[self.group_id]) + if self.group_id == 0x0C: + # CAL appears a third time with third-stage evos (meganium, typhlosion, feraligatr) + max_id += 1 + for trainer_id in range(min_id, max_id+1): trainer_header = TrainerHeader(address=current_address, trainer_group_id=self.group_id, trainer_id=trainer_id, parent=self) self.individual_trainer_headers.append(trainer_header)