Lots of bugfixes - see notes
This commit is contained in:
@@ -40,6 +40,8 @@ def link_doors(world, player):
|
||||
connect_two_way(world, entrance, ext, player)
|
||||
for entrance, ext in straight_staircases:
|
||||
connect_two_way(world, entrance, ext, player)
|
||||
|
||||
connect_custom(world, player)
|
||||
|
||||
find_inaccessible_regions(world, player)
|
||||
|
||||
@@ -197,6 +199,12 @@ def convert_key_doors(k_doors, world, player):
|
||||
return result
|
||||
|
||||
|
||||
def connect_custom(world, player):
|
||||
if hasattr(world, 'custom_doors') and world.custom_doors[player]:
|
||||
for entrance, ext in world.custom_doors[player]:
|
||||
connect_two_way(world, entrance, ext, player)
|
||||
|
||||
|
||||
def connect_simple_door(world, exit_name, region_name, player):
|
||||
region = world.get_region(region_name, player)
|
||||
world.get_entrance(exit_name, player).connect(region)
|
||||
|
||||
Reference in New Issue
Block a user