Added Lite/Lean support for Fixed Take-Any caves

This commit is contained in:
codemann8
2023-01-16 07:14:57 -06:00
parent a3edbaf8b9
commit 34d833b716
3 changed files with 476 additions and 1 deletions

View File

@@ -1471,7 +1471,8 @@ def junk_fill_inaccessible(world, player):
inaccessible_entrances.append(exit.name)
junk_locations = [e for e in list(zip(*(default_connections +
([] if world.pottery[player] not in ['none', 'keys', 'dungeon'] else default_pot_connections))))[1] if e in exit_pool]
([] if world.pottery[player] not in ['none', 'keys', 'dungeon'] else default_pot_connections) +
([] if world.take_any[player] == 'fixed' else default_takeany_connections))))[1] if e in exit_pool]
random.shuffle(junk_locations)
for entrance in inaccessible_entrances:
connect_entrance(world, entrance, junk_locations.pop(), player)