From 990eab4e5543006ff0895cea3631c4b9b1de4e34 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Sat, 17 Aug 2019 15:11:25 -0400 Subject: [PATCH] Fix broken retro mode --- Main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Main.py b/Main.py index 2ff95183..786a91a1 100644 --- a/Main.py +++ b/Main.py @@ -263,6 +263,7 @@ def copy_world(world): def copy_dynamic_regions_and_locations(world, ret): for region in world.dynamic_regions: new_reg = Region(region.name, region.type, region.hint_text, region.player) + new_reg.world = ret ret.regions.append(new_reg) ret.dynamic_regions.append(new_reg) @@ -273,9 +274,11 @@ def copy_dynamic_regions_and_locations(world, ret): ret.shops.append(new_reg.shop) for location in world.dynamic_locations: - new_loc = Location(location.player, location.name, location.address, location.crystal, location.hint_text, location.parent_region,) new_reg = ret.get_region(location.parent_region.name, location.parent_region.player) + new_loc = Location(location.player, location.name, location.address, location.crystal, location.hint_text, new_reg) new_reg.locations.append(new_loc) + + ret.clear_location_cache() def create_playthrough(world):