Merge branch 'OverworldShuffleDev' of https://github.com/codemann8/ALttPDoorRandomizer into OverworldShuffleDev

Adding console output when generation fails to reach required items
This commit is contained in:
codemann8
2023-07-19 14:14:01 -05:00
parent 2c6af4e44c
commit 6d03c5c532

View File

@@ -877,6 +877,7 @@ def create_playthrough(world):
if world.has_beaten_game(state):
required_locations.clear()
else:
logging.getLogger('').error(world.fish.translate("cli", "cli", "cannot.reach.items"), [world.fish.translate("cli","cli","cannot.reach.item") % (loc.item.name, loc.item.player, loc.name, loc.player) for loc in required_locations])
raise RuntimeError(world.fish.translate("cli","cli","cannot.reach.required"))
# store the required locations for statistical analysis