Smith deletion on S+Q only if cannot reach from start

This commit is contained in:
codemann8
2021-10-22 18:32:00 -05:00
parent 13ae8accc4
commit 74c586320b

4
Rom.py
View File

@@ -689,6 +689,10 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
write_int16(rom, 0x150002, owMode) write_int16(rom, 0x150002, owMode)
write_int16(rom, 0x150004, owFlags) write_int16(rom, 0x150004, owFlags)
from OverworldShuffle import can_reach_smith
if not can_reach_smith(world, player):
rom.write_byte(0x18005d, 0x01) # patch for deleting smith on S+Q
# patch entrance/exits/holes # patch entrance/exits/holes
for region in world.regions: for region in world.regions:
for exit in region.exits: for exit in region.exits: