pokerogue/src/system/unlockables.ts

18 lines
513 B
TypeScript
Raw Normal View History

2024-03-14 13:26:57 -07:00
import { GameModes, gameModes } from "../game-mode";
2023-04-28 22:40:24 -07:00
export enum Unlockables {
ENDLESS_MODE,
MINI_BLACK_HOLE,
SPLICED_ENDLESS_MODE
2023-04-28 22:40:24 -07:00
}
export function getUnlockableName(unlockable: Unlockables) {
switch (unlockable) {
case Unlockables.ENDLESS_MODE:
2024-03-14 13:26:57 -07:00
return `${gameModes[GameModes.ENDLESS].getName()} Mode`;
2023-04-28 22:40:24 -07:00
case Unlockables.MINI_BLACK_HOLE:
return 'Mini Black Hole';
case Unlockables.SPLICED_ENDLESS_MODE:
2024-03-14 13:26:57 -07:00
return `${gameModes[GameModes.SPLICED_ENDLESS].getName()} Mode`;
2023-04-28 22:40:24 -07:00
}
}