Fix documentation and example

Fix msu_resume issue
Fix empty locations
Throw error on unknown items
This commit is contained in:
aerinon
2022-03-25 08:43:11 -06:00
parent 27b836f16d
commit 5e07e49798
9 changed files with 139 additions and 8 deletions

View File

@@ -158,6 +158,7 @@ def adjust_page(top, parent, settings):
"nobgm": "disablemusic",
"reduce_flashing": "reduce_flashing",
"shuffle_sfx": "shuffle_sfx",
"msu_resume": "msu_resume",
}
guiargs = Namespace()
for option in options:

View File

@@ -17,6 +17,8 @@ class EntrancePool(object):
self.links_on_mountain = False
self.decoupled_entrances = []
self.decoupled_exits = []
self.original_entrances = set()
self.original_exits = set()
self.world = world
self.player = player
@@ -48,6 +50,8 @@ def link_entrances_new(world, player):
avail_pool.exits.add('Inverted Dark Sanctuary Exit')
inverted_substitution(avail_pool, avail_pool.entrances, True, True)
inverted_substitution(avail_pool, avail_pool.exits, False, True)
avail_pool.original_entrances.update(avail_pool.entrances)
avail_pool.original_exits.update(avail_pool.exits)
default_map = {}
default_map.update(entrance_map)
one_way_map = {}
@@ -378,7 +382,7 @@ def do_holes_and_linked_drops(entrances, exits, avail, cross_world, keep_togethe
hole_entrances, hole_targets = [], []
for hole in drop_map:
if hole in entrances and hole in linked_drop_map:
if hole in avail.original_entrances and hole in linked_drop_map:
linked_entrance = linked_drop_map[hole]
if hole in entrances and linked_entrance in entrances:
hole_entrances.append((linked_entrance, hole))