Add TR bomb door pre-opening
Update base rom
This commit is contained in:
@@ -52,6 +52,10 @@ class InitialSram:
|
|||||||
def pre_open_pyramid_hole(self):
|
def pre_open_pyramid_hole(self):
|
||||||
self._or_value(OVERWORLD_DATA+0x5B, 0x20)
|
self._or_value(OVERWORLD_DATA+0x5B, 0x20)
|
||||||
|
|
||||||
|
def pre_open_tr_bomb_doors(self):
|
||||||
|
self._or_value(ROOM_DATA+0x47, 0x80)
|
||||||
|
self._or_value(ROOM_DATA+0x01AB, 0x80)
|
||||||
|
|
||||||
def set_starting_equipment(self, world: object, player: int):
|
def set_starting_equipment(self, world: object, player: int):
|
||||||
equip = [0] * (0x340 + 0x4F)
|
equip = [0] * (0x340 + 0x4F)
|
||||||
equip[0x36C] = 0x18
|
equip[0x36C] = 0x18
|
||||||
|
|||||||
10
Rom.py
10
Rom.py
@@ -19,7 +19,7 @@ from EntranceShuffle import door_addresses
|
|||||||
|
|
||||||
|
|
||||||
JAP10HASH = '03a63945398191337e896e5771f77173'
|
JAP10HASH = '03a63945398191337e896e5771f77173'
|
||||||
RANDOMIZERBASEHASH = 'bfd288a5301b0793aaa1f9dbad36257e'
|
RANDOMIZERBASEHASH = 'a69733eb16c0e01ca318ccf24e932190'
|
||||||
|
|
||||||
|
|
||||||
class JsonRom(object):
|
class JsonRom(object):
|
||||||
@@ -1028,13 +1028,7 @@ def patch_rom(world, player, rom):
|
|||||||
|
|
||||||
# fix trock doors for reverse entrances
|
# fix trock doors for reverse entrances
|
||||||
if world.fix_trock_doors:
|
if world.fix_trock_doors:
|
||||||
rom.write_byte(0xFED31, 0x0E) # preopen bombable exit
|
rom.initial_sram.pre_open_tr_bomb_doors() # preopen bombable exits
|
||||||
rom.write_byte(0xFEE41, 0x0E) # preopen bombable exit
|
|
||||||
# included unconditionally in base2current
|
|
||||||
#rom.write_byte(0xFE465, 0x1E) # remove small key door on backside of big key door
|
|
||||||
else:
|
|
||||||
rom.write_byte(0xFED31, 0x2A) # preopen bombable exit
|
|
||||||
rom.write_byte(0xFEE41, 0x2A) # preopen bombable exit
|
|
||||||
|
|
||||||
write_strings(rom, world, player)
|
write_strings(rom, world, player)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user