You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
fix MoneyByteParam formatting
This commit is contained in:
@@ -1410,11 +1410,11 @@ class MoneyByteParam(MultiByteParam):
|
|||||||
def parse(self):
|
def parse(self):
|
||||||
MultiByteParam.parse(self)
|
MultiByteParam.parse(self)
|
||||||
# in the rom as xxyyzz
|
# in the rom as xxyyzz
|
||||||
self.x = self.bytes[0]
|
self.x = self.bytes[2]
|
||||||
self.y = self.bytes[1]
|
self.y = self.bytes[1]
|
||||||
self.z = self.bytes[2]
|
self.z = self.bytes[0]
|
||||||
def to_asm(self):
|
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
|
#this is used by the preprocessor
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Reference in New Issue
Block a user