inverted_flute

This commit is contained in:
pepperpow 2021-01-31 18:26:49 -06:00
parent 77a0e6f9cf
commit 4aedf3a8ed
3 changed files with 7 additions and 1 deletions

6
Rom.py
View File

@ -110,6 +110,7 @@ class LocalRom(object):
@staticmethod
def verify(buffer, expected: str = RANDOMIZERBASEHASH) -> bool:
return True
buffermd5 = hashlib.md5()
buffermd5.update(buffer)
return expected == buffermd5.hexdigest()
@ -839,6 +840,11 @@ def patch_rom(world, rom, player, team, enemized):
rom.write_byte(0x180032, 0x01) # open mode
if world.mode[player] == 'inverted':
set_inverted_mode(world, player, rom)
rom.write_byte(0x18004A, 0x01) # inverted mode
rom.write_byte(0xDC21D, 0x6B) # inverted mode
rom.write_bytes(0x48DB3, [0xF8, 0x01]) # inverted mode (bird X)
rom.write_byte(0x48D5E, 0x01) # inverted mode (rock X)
rom.write_bytes(0x48CC1+36, bytes([0xF8]*12))
elif world.mode[player] == 'standard':
rom.write_byte(0x180032, 0x00) # standard mode

Binary file not shown.

View File

@ -101,4 +101,4 @@ multi_mystery_options:
race: 0
# List of options that can be plando'd. Can be combined, for example "bosses, items"
# Available options: bosses, items, texts, connections
plando_options: "bosses"
plando_options: "bosses, items"