shithub: pokecrystal

Download patch

ref: 6008b1a96c4079b6ca164f814cdd5fb26d568969
parent: e52d1e9415fd66e00f9867c0b7d93f963e563774
author: Bryan Bishop <[email protected]>
date: Sat May 19 14:28:23 EDT 2012

pick up the third CAL trainer header

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3545,6 +3545,10 @@
         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)