mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-24 13:08:39 +00:00
* Initial challenge framework * Add type localisation * Change how challenges are tracked Also fixes the difficulty total text * MVP Renames challenge types, temporarily hides difficulty, and implements challenge saving. * Attempt to fix one legal pokemon in a double battle * Make monotype ignore type changing effects * Make isOfType correctly detect normal types * Try to fix double battles again * Make challenge function more like classic * Add helper function for fainted or not allowed * Add framework for fresh start challenge and improve comments * Try to fix evolution issues * Make form changing items only usable from rewards screen * Update localisation * Additional localisation change * Add achievements for completing challenges * Fix initialisation bug with challenge achievements * Add support for gamemode specific fixed battles Also make monogen challenges face the e4 of their generation * Add better support for mobile in challenges * Localise illegal evolution/form change message * Update achievement names * Make alternate forms count for monogen * Update monotype achievement icons * Add more comments * Improve comments * Fix mid battle form changes * Reorder mode list * Remove currently unused localisation entry * Add type overrides for monotype challenges Meloetta always counts for psychic and castform always counts for normal * Change how form changes are handled Now attempts a switch at the start of each turn instead of immediately * Add start button to challenge select screen * Make starter select back out to challenge screen if using challenges * Fix daily runs * Update tests to new game mode logic
19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
import { GameMode, GameModes } from "../game-mode";
|
|
|
|
export enum Unlockables {
|
|
ENDLESS_MODE,
|
|
MINI_BLACK_HOLE,
|
|
SPLICED_ENDLESS_MODE
|
|
}
|
|
|
|
export function getUnlockableName(unlockable: Unlockables) {
|
|
switch (unlockable) {
|
|
case Unlockables.ENDLESS_MODE:
|
|
return `${GameMode.getModeName(GameModes.ENDLESS)} Mode`;
|
|
case Unlockables.MINI_BLACK_HOLE:
|
|
return "Mini Black Hole";
|
|
case Unlockables.SPLICED_ENDLESS_MODE:
|
|
return `${GameMode.getModeName(GameModes.SPLICED_ENDLESS)} Mode`;
|
|
}
|
|
}
|