mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-04-24 15:16:52 -05:00
fix MoneyByteParam formatting
original-commit-id: d9a2680c71f06bd4c9134b02b1aaaa0286c0567c
This commit is contained in:
parent
368b3b843d
commit
9160959451
|
|
@ -1410,11 +1410,11 @@ class MoneyByteParam(MultiByteParam):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user