mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-22 17:55:44 +00:00
23 lines
698 B
TypeScript
23 lines
698 B
TypeScript
import i18next from "i18next";
|
|
import { GameMode, GameModes } from "../game-mode";
|
|
|
|
export enum Unlockables {
|
|
ENDLESS_MODE,
|
|
MINI_BLACK_HOLE,
|
|
SPLICED_ENDLESS_MODE,
|
|
EVIOLITE
|
|
}
|
|
|
|
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");
|
|
}
|
|
}
|