mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Reinstate the state cache system for playthough generation
Fixed the issues in can_beat_game that required me to turn it off.
This commit is contained in:
3
Main.py
3
Main.py
@@ -327,8 +327,7 @@ def create_playthrough(world):
|
||||
old_item = location.item
|
||||
location.item = None
|
||||
state.remove(old_item)
|
||||
##if world.can_beat_game(state_cache[num]):
|
||||
if world.can_beat_game():
|
||||
if world.can_beat_game(state_cache[num]):
|
||||
to_delete.append(location)
|
||||
else:
|
||||
# still required, got to keep it around
|
||||
|
Reference in New Issue
Block a user