Fix issue with copying locations (fixes moon pearl logic during playthrough generation).

This commit is contained in:
compiling
2020-12-01 18:20:48 +11:00
parent ad00c2aea7
commit 70a206fd22

View File

@@ -435,9 +435,7 @@ def copy_world(world):
copied_region.is_light_world = region.is_light_world
copied_region.is_dark_world = region.is_dark_world
copied_region.dungeon = region.dungeon
copied_region.locations = [copy.copy(location) for location in region.locations]
for location in copied_region.locations:
location.parent_region = copied_region
copied_region.locations = [Location(location.player, location.name, parent=copied_region) for location in region.locations]
for entrance in region.entrances:
ret.get_entrance(entrance.name, entrance.player).connect(copied_region)