mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
No filler in shuffled GT
This adds a check to adding filler into GT for the shuffle_ganon flag. If it is set, adding filler is skipped.
This commit is contained in:
1
Fill.py
1
Fill.py
@@ -204,6 +204,7 @@ def distribute_items_restrictive(world, gftower_trash_count=0, fill_locations=No
|
|||||||
restitempool = [item for item in world.itempool if not item.advancement and not item.priority]
|
restitempool = [item for item in world.itempool if not item.advancement and not item.priority]
|
||||||
|
|
||||||
# fill in gtower locations with trash first
|
# fill in gtower locations with trash first
|
||||||
|
if not world.shuffle_ganon:
|
||||||
gtower_locations = [location for location in fill_locations if 'Ganons Tower' in location.name]
|
gtower_locations = [location for location in fill_locations if 'Ganons Tower' in location.name]
|
||||||
random.shuffle(gtower_locations)
|
random.shuffle(gtower_locations)
|
||||||
trashcnt = 0
|
trashcnt = 0
|
||||||
|
Reference in New Issue
Block a user