Split duplicate exits into unique

This commit is contained in:
codemann8
2020-12-12 06:56:36 -06:00
parent 2e5af373a5
commit 1add1222e1
4 changed files with 105 additions and 38 deletions

View File

@@ -1791,6 +1791,8 @@ def create_doors_for_inaccessible_region(inaccessible_region, world, player):
region = world.get_region(inaccessible_region, player)
for ext in region.exits:
create_door(world, player, ext.name, region.name)
if ext.connected_region is None:
print("ERROR: Exit not connected to any region: " + ext.name)
if ext.connected_region.name.endswith(' Portal'):
for more_exts in ext.connected_region.exits:
create_door(world, player, more_exts.name, ext.connected_region.name)