mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-23 10:09:15 +01:00
* Add abilityAttr.is methods * [WIP] move modifier stuff around * Untangle circular deps from modifiers * Move unlockables to own file * Untangle all circular deps outside of MEs * Move constants in MEs to their own files * Re-add missing import to battle.ts * Add necessary overload for getTag * Add missing type import in weather.ts * Init modifier types and pools in loading-scene * Remove stray commented code * Apply kev's suggestions from code review Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
18 lines
685 B
TypeScript
18 lines
685 B
TypeScript
import i18next from "i18next";
|
|
import { GameMode } from "../game-mode";
|
|
import { GameModes } from "#enums/game-modes";
|
|
import { Unlockables } from "#enums/unlockables";
|
|
|
|
export function getUnlockableName(unlockable: Unlockables) {
|
|
switch (unlockable) {
|
|
case Unlockables.ENDLESS_MODE:
|
|
return `${GameMode.getModeName(GameModes.ENDLESS)} Mode`;
|
|
case Unlockables.MINI_BLACK_HOLE:
|
|
return i18next.t("modifierType:ModifierType.MINI_BLACK_HOLE.name");
|
|
case Unlockables.SPLICED_ENDLESS_MODE:
|
|
return `${GameMode.getModeName(GameModes.SPLICED_ENDLESS)} Mode`;
|
|
case Unlockables.EVIOLITE:
|
|
return i18next.t("modifierType:ModifierType.EVIOLITE.name");
|
|
}
|
|
}
|