Smith deletion on S+Q only if cannot reach from start
This commit is contained in:
4
Rom.py
4
Rom.py
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user