shithub: pokecrystal

Download patch

ref: f43de05607d2e65bc20ea571b7ce5cfb61a300bd
parent: 984597d1aa34646166e8c79a1680c83bb6c70268
author: Bryan Bishop <[email protected]>
date: Sun May 13 20:51:16 EDT 2012

fix PointerLabelParams in signposts

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -3833,7 +3833,7 @@
                    debug=self.debug)
             self.remotes.append(r1)
 
-            mb = PointerLabelParam(address=address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
+            mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
             self.params.append(mb)
         elif func == 7:
             #signpost's script pointer points to [Bit-Nr. (2byte)][Item no.]
@@ -3851,7 +3851,7 @@
                    debug=self.debug)
             self.remotes.append(r1)
 
-            mb = PointerLabelParam(address=address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
+            mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
             self.params.append(mb)
 
             #bit_table_byte1 = ord(rom[address])
@@ -3873,7 +3873,7 @@
                    debug=self.debug)
             self.remotes.append(r1)
 
-            mb = PointerLabelParam(address=address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
+            mb = PointerLabelParam(address=self.address+3, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
             self.params.append(mb)
         else:
             raise Exception, "unknown signpost type byte="+hex(func) + " signpost@"+hex(self.address)