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:
Kevin Cathcart
2019-07-11 00:12:09 -04:00
parent ea07c3d9c0
commit d6ff27f0a5
2 changed files with 6 additions and 15 deletions

View File

@@ -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