def make_dungeon(name, default_boss, dungeon_regions, big_key, small_keys, dungeon_items): dungeon = Dungeon(name, dungeon_regions, big_key, [] if world.retro[player] else small_keys, dungeon_items, player) dungeon.boss = BossFactory(default_boss, player) for region in dungeon.regions: world.get_region(region, player).dungeon = dungeon dungeon.world = world return dungeon
def make_dungeon(name, default_boss, dungeon_regions, big_key, small_keys, dungeon_items): dungeon = Dungeon(name, dungeon_regions, big_key, [] if world.retro else small_keys, dungeon_items) dungeon.boss = BossFactory(default_boss) for region in dungeon.regions: world.get_region(region).dungeon = dungeon return dungeon
def make_dungeon(name, default_boss, dungeon_regions, big_key, small_keys, dungeon_items): dungeon = Dungeon( name, dungeon_regions, big_key, [] if world.keyshuffle[player] == "universal" else small_keys, dungeon_items, player) dungeon.boss = BossFactory(default_boss, player) if default_boss else None for region in dungeon.regions: world.get_region(region, player).dungeon = dungeon dungeon.world = world return dungeon
def make_dungeon(name, default_boss, dungeon_regions, big_key, small_keys, dungeon_items): dungeon = Dungeon(name, dungeon_regions, big_key, [] if world.smallkey_shuffle[player] == smallkey_shuffle.option_universal else small_keys, dungeon_items, player) for item in dungeon.all_items: item.dungeon = dungeon item.world = world dungeon.boss = BossFactory(default_boss, player) if default_boss else None for region in dungeon.regions: world.get_region(region, player).dungeon = dungeon dungeon.world = world return dungeon
def make_dungeon(name, dungeon_regions, boss_key, small_keys, dungeon_items): dungeon = Dungeon(name, dungeon_regions, boss_key, small_keys, dungeon_items) for region in dungeon.regions: world.get_region(region).dungeon = dungeon return dungeon
def make_dungeon(name, dungeon_regions_names, boss_key, small_keys, dungeon_items): dungeon_regions = [ world.get_region(region) for region in dungeon_regions_names ] dungeon = Dungeon(world, name, dungeon_regions, boss_key, small_keys, dungeon_items) for region in dungeon.regions: region.dungeon = dungeon return dungeon