forked from mirror/Archipelago
Some checks failed
Analyze modified files / flake8 (push) Failing after 2m28s
Build / build-win (push) Has been cancelled
Build / build-ubuntu2204 (push) Has been cancelled
ctest / Test C++ ubuntu-latest (push) Has been cancelled
ctest / Test C++ windows-latest (push) Has been cancelled
Analyze modified files / mypy (push) Has been cancelled
Build and Publish Docker Images / Push Docker image to Docker Hub (push) Successful in 5m4s
Native Code Static Analysis / scan-build (push) Failing after 5m2s
type check / pyright (push) Successful in 1m7s
unittests / Test Python 3.11.2 ubuntu-latest (push) Failing after 16m23s
unittests / Test Python 3.12 ubuntu-latest (push) Failing after 28m19s
unittests / Test Python 3.13 ubuntu-latest (push) Failing after 14m49s
unittests / Test hosting with 3.13 on ubuntu-latest (push) Successful in 5m0s
unittests / Test Python 3.13 macos-latest (push) Has been cancelled
unittests / Test Python 3.11 windows-latest (push) Has been cancelled
unittests / Test Python 3.13 windows-latest (push) Has been cancelled
59 lines
2.9 KiB
Python
59 lines
2.9 KiB
Python
"""Logic information for glitch logic."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
|
|
class GlitchLogicItem:
|
|
"""Glitch Logic multiselector information."""
|
|
|
|
def __init__(self, name: str, tooltip: str = "") -> None:
|
|
"""Initialize with given data."""
|
|
self.name = name
|
|
self.shorthand = name.lower().replace(" ", "_")
|
|
self.tooltip = tooltip
|
|
|
|
|
|
GlitchSelector = []
|
|
# If you make changes to this list, make sure to change the corresponding
|
|
# GlitchesSelected enum in randomizer.Enums.Settings.
|
|
GlitchLogicItems = [
|
|
GlitchLogicItem(
|
|
"Advanced Platforming",
|
|
"Platforming techniques that don't require any glitches but might be too tough for some players.",
|
|
),
|
|
GlitchLogicItem("B Locker Skips", "Any skip that allows you to bypass the B. Locker's requirements."),
|
|
GlitchLogicItem(
|
|
"General Clips",
|
|
"Any trick that doesn't fall into a general category. Includes object clips, bush push, terminal 2 clip and Crypt jump clip.",
|
|
),
|
|
GlitchLogicItem("Ledge Clips", "A trick that allows the player to fall through gaps between walls and floors."),
|
|
GlitchLogicItem("Moonkicks", "A trick that allows Donkey to ascend by interrupting his aerial attack with a kick."),
|
|
GlitchLogicItem("Moontail", "A trick that allows the player to gain extra height with Diddy"),
|
|
GlitchLogicItem(
|
|
"Phase Swimming",
|
|
"Formerly known as STVW, a trick to go through a significant amount of walls in the game whilst underwater.",
|
|
),
|
|
GlitchLogicItem(
|
|
"Phase Walking",
|
|
"A triple-frame perfect technique to go through a significant amount of walls in the game. This option also includes Phase Falling",
|
|
),
|
|
GlitchLogicItem(
|
|
"Skew",
|
|
"A trick that enables you to rotate the kong's collision and model, enabling the player to go through most walls in the game.",
|
|
),
|
|
GlitchLogicItem(
|
|
"Spawn Snags",
|
|
"A trick that allows you to collect items earlier than intended by keeping them unloaded. Only accounts for spawn snags that have been done by humans.",
|
|
),
|
|
GlitchLogicItem("Swim through Shores", "A trick that allows you to swim into a sloped shoreline to get out of bounds."),
|
|
GlitchLogicItem("Tag Barrel Storage", "A trick that allows you to store a tag barrel being entered and abuse that storage. Includes telegrabs and Orangstand TBS Noclips."),
|
|
GlitchLogicItem("Troff n Scoff Skips", "Any skip that allows you to bypass the kong and small banana requirement in order to fight a boss."),
|
|
GlitchLogicItem("PhaseFall", "An alternative to Phase walking that allows you to use fairy camera and Chunky to go through walls"),
|
|
# GlitchLogicItem("Boulder Clips"),
|
|
]
|
|
for item in GlitchLogicItems:
|
|
if item.name != "No Group":
|
|
GlitchSelector.append({"name": item.name, "value": item.shorthand, "tooltip": item.tooltip})
|