Pseudoflute

This commit is contained in:
2025-12-14 10:00:06 -06:00
parent f8414e2f67
commit 7b5c6e52a5
7 changed files with 19 additions and 10 deletions

View File

@@ -71,6 +71,11 @@ class InitialSram:
starting_arrows = 0
starting_magic = 0
if world.flute_mode[player] == 'pseudo':
self._initial_sram_bytes[0x3C2] = 0x00
equip[0x34C] = 0x03
equip[0x38C] = 0x01
startingstate = CollectionState(world)
if startingstate.has('Bow', player):
@@ -114,6 +119,9 @@ class InitialSram:
equip[0x37B] = 1
starting_magic = 0x80
if startingstate.has('Ocarina (Activated)', player) or startingstate.has('Ocarina', player):
self._initial_sram_bytes[0x3C2] = 0xFF
if world.mode[player] == 'standard' and world.logic[player] not in ['noglitches', 'minorglitches']:
if startingstate.has('Ocarina (Activated)', player):
self.pre_set_overworld_flag(0x18, 0x20)
@@ -252,7 +260,7 @@ class InitialSram:
if not startingstate.has('Magic Mirror', player) and (world.doorShuffle[player] != 'vanilla' or world.mirrorscroll[player]):
equip[0x353] = 1
# Assertion and copy equip to initial_sram_bytes
assert equip[:0x340] == [0] * 0x340
self._initial_sram_bytes[0x340:0x38F] = equip[0x340:0x38F]