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

@@ -688,6 +688,10 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
write_int16(rom, 0x150002, owMode)
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
for region in world.regions: