Initialize region cache in initialize_regions() and make it a 2d map for more efficient player filtering

This commit is contained in:
Bonta-kun
2019-12-14 19:19:08 +01:00
parent bf7a2d79fb
commit e4fef05d53
5 changed files with 13 additions and 10 deletions

View File

@@ -295,8 +295,8 @@ 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.initialize_regions([new_reg])
ret.dynamic_regions.append(new_reg)
# Note: ideally exits should be copied here, but the current use case (Take anys) do not require this