ArchipIDLE: add a completion condition instead of hard coding tests around a game (#1444)

This commit is contained in:
alwaysintreble
2023-02-23 20:16:10 -06:00
committed by GitHub
parent cb3d40624c
commit 1d6ab13015
2 changed files with 5 additions and 1 deletions

View File

@@ -31,3 +31,7 @@ def set_rules(world: MultiWorld, player: int):
world.get_location(f"IDLE for at least {int(i / 2)} minutes {30 if (i % 2) else 0} seconds", player),
lambda state: state._archipidle_location_is_accessible(player, 20)
)
world.completion_condition[player] =\
lambda state:\
state.can_reach(world.get_location("IDLE for at least 50 minutes 0 seconds", player), "Location", player)