mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Tweak fill algorithm to more closely match VT26
This commit is contained in:
11
Dungeons.py
11
Dungeons.py
@@ -103,14 +103,13 @@ def fill_dungeons(world):
|
||||
world.state._clear_cache()
|
||||
|
||||
|
||||
def fill_dungeons_restrictive(world):
|
||||
def fill_dungeons_restrictive(world, shuffled_locations):
|
||||
all_state_base = world.get_all_state()
|
||||
|
||||
world.push_item(world.get_location('[dungeon-D3-B1] Skull Woods - South of Big Chest'), ItemFactory('Small Key (Skull Woods)'), False)
|
||||
world.get_location('[dungeon-D3-B1] Skull Woods - South of Big Chest').event = True
|
||||
|
||||
shuffled_locations=world.get_unfilled_locations()
|
||||
random.shuffle(shuffled_locations)
|
||||
skull_woods_big_chest = world.get_location('[dungeon-D3-B1] Skull Woods - South of Big Chest')
|
||||
world.push_item(skull_woods_big_chest, ItemFactory('Small Key (Skull Woods)'), False)
|
||||
skull_woods_big_chest.event = True
|
||||
shuffled_locations.remove(skull_woods_big_chest)
|
||||
|
||||
dungeon_items = [item for dungeon in world.dungeons for item in dungeon.all_items]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user