Only return lobbies rather than dungeon regions

This commit is contained in:
KrisDavie
2023-12-12 18:49:55 +01:00
parent a4a523ce4c
commit e1a2e1bb5f

View File

@@ -1975,7 +1975,8 @@ def set_bunny_rules(world, player, inverted):
if entrance.name in drop_dungeon_entrances:
lobby = entrance.connected_region
else:
lobby = next(exit.connected_region for exit in current.exits if exit.connected_region.type == RegionType.Dungeon)
portal_regions = [world.get_region(reg, player) for reg in region.dungeon.regions if reg.endswith('Portal')]
lobby = next(reg.connected_region for portal_reg in portal_regions for reg in portal_reg.exits if reg.name.startswith('Enter '))
if lobby.name in bunny_revivable_entrances:
possible_options.append(path_to_access_rule(new_path, entrance))
elif lobby.name in superbunny_revivable_entrances: