2021-09-24 02:07:32 +00:00
|
|
|
from typing import Tuple
|
|
|
|
from BaseClasses import MultiWorld
|
|
|
|
from .Options import is_option_enabled
|
|
|
|
|
|
|
|
def get_pyramid_keys_unlock(world: MultiWorld, player: int) -> str:
|
2021-09-30 17:51:07 +00:00
|
|
|
present_teleportation_gates: Tuple[str, ...] = (
|
2021-09-24 02:07:32 +00:00
|
|
|
"GateKittyBoss",
|
|
|
|
"GateLeftLibrary",
|
|
|
|
"GateMilitairyGate",
|
|
|
|
"GateSealedCaves",
|
|
|
|
"GateSealedSirensCave",
|
|
|
|
"GateLakeDesolation"
|
|
|
|
)
|
|
|
|
|
2021-09-30 17:51:07 +00:00
|
|
|
past_teleportation_gates: Tuple[str, ...] = (
|
2021-09-24 02:07:32 +00:00
|
|
|
"GateLakeSirineRight",
|
|
|
|
"GateAccessToPast",
|
|
|
|
"GateCastleRamparts",
|
|
|
|
"GateCastleKeep",
|
|
|
|
"GateRoyalTowers",
|
|
|
|
"GateMaw",
|
|
|
|
"GateCavesOfBanishment"
|
|
|
|
)
|
|
|
|
|
|
|
|
if is_option_enabled(world, player, "Inverted"):
|
|
|
|
gates = present_teleportation_gates
|
|
|
|
else:
|
|
|
|
gates = (*past_teleportation_gates, *present_teleportation_gates)
|
|
|
|
|
2021-12-12 22:53:49 +00:00
|
|
|
if not world:
|
|
|
|
return gates[0]
|
|
|
|
|
2021-09-24 02:07:32 +00:00
|
|
|
return world.random.choice(gates)
|