Remove comments in yaml files.
Throw a meaningful error if the door-shuffle setting is invalid.
This commit is contained in:
@@ -55,6 +55,9 @@ def link_doors(world, player):
|
||||
cross_dungeon(world, player)
|
||||
elif world.doorShuffle[player] == 'experimental':
|
||||
experiment(world, player)
|
||||
else:
|
||||
logging.getLogger('').error('Invalid door shuffle setting: %s' % world.doorShuffle[player])
|
||||
raise Exception('Invalid door shuffle setting: %s' % world.doorShuffle[player])
|
||||
|
||||
if world.doorShuffle[player] != 'vanilla':
|
||||
create_door_spoiler(world, player)
|
||||
|
||||
Reference in New Issue
Block a user