Allow Zelda escape to use TT Maiden Cell as checkpoint
This commit is contained in:
@@ -333,13 +333,13 @@ def determine_paths_for_dungeon(world, player, all_regions, name):
|
||||
if portal.destination:
|
||||
paths.append(portal.door.entrance.parent_region.name)
|
||||
if world.mode[player] == 'standard' and name == 'Hyrule Castle Dungeon':
|
||||
paths.append('Hyrule Dungeon Cellblock')
|
||||
paths.append(('Hyrule Dungeon Cellblock', 'Hyrule Castle Throne Room'))
|
||||
paths.append(world.default_zelda_region[player])
|
||||
paths.append((world.default_zelda_region[player], 'Hyrule Castle Throne Room'))
|
||||
entrance = next(x for x in world.dungeon_portals[player] if x.name == 'Hyrule Castle South')
|
||||
# todo: in non-er, we can use the other portals too
|
||||
paths.append(('Hyrule Dungeon Cellblock', entrance.door.entrance.parent_region.name))
|
||||
paths.append((world.default_zelda_region[player], entrance.door.entrance.parent_region.name))
|
||||
paths.append(('Hyrule Castle Throne Room', [entrance.door.entrance.parent_region.name,
|
||||
'Hyrule Dungeon Cellblock']))
|
||||
world.default_zelda_region[player]]))
|
||||
if world.doorShuffle[player] in ['basic'] and name == 'Thieves Town':
|
||||
paths.append('Thieves Attic Window')
|
||||
elif 'Thieves Attic Window' in all_r_names:
|
||||
|
||||
@@ -521,6 +521,21 @@ def randomize_enemies(world, player):
|
||||
green_mail, blue_mail, red_mail = original_table[idx]
|
||||
del original_table[idx]
|
||||
world.data_tables[player].enemy_damage[i] = [green_mail, blue_mail, red_mail]
|
||||
# determine default zelda follower location
|
||||
if world.mode[player] == 'standard' and world.doorShuffle[player] == 'crossed' and world.shuffle_followers[player]:
|
||||
def random_zelda():
|
||||
world.default_zelda_region[player] = random.choice(['Hyrule Dungeon Cellblock', 'Thieves Blind\'s Cell'])
|
||||
if world.customizer:
|
||||
placements = world.customizer.get_placements()
|
||||
if placements and player in placements and 'Zelda Herself' in placements[player].values():
|
||||
location = [l for (l, item) in placements[player].items() if item == 'Zelda Herself'][0]
|
||||
if location == 'Suspicious Maiden':
|
||||
world.default_zelda_region[player] = 'Thieves Blind\'s Cell'
|
||||
else:
|
||||
random_zelda()
|
||||
else:
|
||||
random_zelda()
|
||||
|
||||
|
||||
|
||||
def write_enemy_shuffle_settings(world, player, rom):
|
||||
|
||||
Reference in New Issue
Block a user