Mystery: separate dungeon items shuffling when requested

This commit is contained in:
Bonta-kun 2019-12-18 20:33:09 +01:00
parent 8aad6b6055
commit fea3888b45
1 changed files with 11 additions and 8 deletions

View File

@ -122,14 +122,17 @@ def roll_settings(weights):
item_placement = get_choice('item_placement') item_placement = get_choice('item_placement')
# not supported in ER # not supported in ER
dungeon_items = get_choice('dungeon_items') if {'map_shuffle', 'compass_shuffle', 'smallkey_shuffle', 'bigkey_shuffle'}.issubset(weights.keys()):
if dungeon_items in ['mc', 'mcs', 'full']: ret.mapshuffle = get_choice('map_shuffle') == 'on'
ret.mapshuffle = True ret.compassshuffle = get_choice('compass_shuffle') == 'on'
ret.compassshuffle = True ret.keyshuffle = get_choice('smallkey_shuffle') == 'on'
if dungeon_items in ['mcs', 'full']: ret.bigkeyshuffle = get_choice('bigkey_shuffle') == 'on'
ret.keyshuffle = True else:
if dungeon_items in ['full']: dungeon_items = get_choice('dungeon_items')
ret.bigkeyshuffle = True ret.mapshuffle = dungeon_items in ['mc', 'mcs', 'full']
ret.compassshuffle = dungeon_items in ['mc', 'mcs', 'full']
ret.keyshuffle = dungeon_items in ['mcs', 'full']
ret.bigkeyshuffle = dungeon_items in ['full']
accessibility = get_choice('accessibility') accessibility = get_choice('accessibility')
ret.accessibility = accessibility ret.accessibility = accessibility