mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00

* Refactorings + minor logic fix * Fixed unnececerly recalculation of item_name_groups * Enabled other itemId's so that they can be send to client when desired * Marked the loss of location 1337158 * Updated network graph * First draft tinmespinner documentation * Moved personal items to slot_data rather than location scouts * Disabled Remote Items * Updated docs * Fixed port override
30 lines
895 B
Python
30 lines
895 B
Python
from typing import Tuple
|
|
from BaseClasses import MultiWorld
|
|
from .Options import is_option_enabled
|
|
|
|
def get_pyramid_keys_unlock(world: MultiWorld, player: int) -> str:
|
|
present_teleportation_gates: Tuple[str, ...] = (
|
|
"GateKittyBoss",
|
|
"GateLeftLibrary",
|
|
"GateMilitairyGate",
|
|
"GateSealedCaves",
|
|
"GateSealedSirensCave",
|
|
"GateLakeDesolation"
|
|
)
|
|
|
|
past_teleportation_gates: Tuple[str, ...] = (
|
|
"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)
|
|
|
|
return world.random.choice(gates) |