Adding OW Rando credits
This commit is contained in:
6
Rom.py
6
Rom.py
@@ -28,7 +28,7 @@ from OverworldShuffle import default_flute_connections, flute_data
|
|||||||
|
|
||||||
|
|
||||||
JAP10HASH = '03a63945398191337e896e5771f77173'
|
JAP10HASH = '03a63945398191337e896e5771f77173'
|
||||||
RANDOMIZERBASEHASH = '6e44346357f8a9471a8499ab787635c1'
|
RANDOMIZERBASEHASH = '6a018a61c2ba2d9d5c75cd5fb8ac003e'
|
||||||
|
|
||||||
|
|
||||||
class JsonRom(object):
|
class JsonRom(object):
|
||||||
@@ -890,7 +890,7 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
|||||||
write_int16(rom, 0x187010, credits_total) # dynamic credits
|
write_int16(rom, 0x187010, credits_total) # dynamic credits
|
||||||
if credits_total != 216:
|
if credits_total != 216:
|
||||||
# collection rate address:
|
# collection rate address:
|
||||||
cr_address = 0x2391BE
|
cr_address = 0x2391CC
|
||||||
cr_pc = cr_address - 0x120000 # convert to pc
|
cr_pc = cr_address - 0x120000 # convert to pc
|
||||||
mid_top, mid_bot = credits_digit((credits_total // 10) % 10)
|
mid_top, mid_bot = credits_digit((credits_total // 10) % 10)
|
||||||
last_top, last_bot = credits_digit(credits_total % 10)
|
last_top, last_bot = credits_digit(credits_total % 10)
|
||||||
@@ -909,7 +909,7 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
|
|||||||
total += count_locations_exclude_logic(region.locations, gt_logic)
|
total += count_locations_exclude_logic(region.locations, gt_logic)
|
||||||
# rom.write_byte(0x187012, total) # dynamic credits
|
# rom.write_byte(0x187012, total) # dynamic credits
|
||||||
# gt big key address:
|
# gt big key address:
|
||||||
gtbk_address = 0x2390E0
|
gtbk_address = 0x2390EE
|
||||||
gtbk_pc = gtbk_address - 0x120000 # convert to pc
|
gtbk_pc = gtbk_address - 0x120000 # convert to pc
|
||||||
mid_top, mid_bot = credits_digit(total // 10)
|
mid_top, mid_bot = credits_digit(total // 10)
|
||||||
last_top, last_bot = credits_digit(total % 10)
|
last_top, last_bot = credits_digit(total % 10)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user