From c4981e4b91ddca3b043c20b6dd900899f7ad787d Mon Sep 17 00:00:00 2001 From: Jarno Westhof Date: Sun, 12 Dec 2021 23:53:49 +0100 Subject: [PATCH] TS: Fixed unit test --- worlds/timespinner/PyramidKeys.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worlds/timespinner/PyramidKeys.py b/worlds/timespinner/PyramidKeys.py index 761dccb9..4e47b516 100644 --- a/worlds/timespinner/PyramidKeys.py +++ b/worlds/timespinner/PyramidKeys.py @@ -27,4 +27,7 @@ def get_pyramid_keys_unlock(world: MultiWorld, player: int) -> str: else: gates = (*past_teleportation_gates, *present_teleportation_gates) + if not world: + return gates[0] + return world.random.choice(gates) \ No newline at end of file