shithub: pokecrystal

Download patch

ref: d9a2680c71f06bd4c9134b02b1aaaa0286c0567c
parent: 45c41795f517f420bc0b6cef4d061f767d90915c
author: Bryan Bishop <[email protected]>
date: Fri Apr 27 12:48:25 EDT 2012

fix MoneyByteParam formatting

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1410,11 +1410,11 @@
     def parse(self):
         MultiByteParam.parse(self)
         # in the rom as xxyyzz
-        self.x = self.bytes[0]
+        self.x = self.bytes[2]
         self.y = self.bytes[1]
-        self.z = self.bytes[2]
+        self.z = self.bytes[0]
     def to_asm(self):
-        return str(self.x + self.y << 8 + self.z << 16)
+        return str(self.x + (self.y << 8) + (self.z << 16))
 
     #this is used by the preprocessor    
     @staticmethod