mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-21 08:20:49 +00:00
35 lines
558 B
TypeScript
35 lines
558 B
TypeScript
import { toPokemonUpperCase } from "./utils";
|
|
|
|
export enum Stat {
|
|
HP = 0,
|
|
ATK,
|
|
DEF,
|
|
SPATK,
|
|
SPDEF,
|
|
SPD
|
|
};
|
|
|
|
export function getStatName(stat: Stat) {
|
|
let ret;
|
|
switch (stat) {
|
|
case Stat.HP:
|
|
ret = 'Max. HP';
|
|
break;
|
|
case Stat.ATK:
|
|
ret = 'Attack';
|
|
break;
|
|
case Stat.DEF:
|
|
ret = 'Defense';
|
|
break;
|
|
case Stat.SPATK:
|
|
ret = 'Sp. Atk';
|
|
break;
|
|
case Stat.SPDEF:
|
|
ret = 'Sp. Def';
|
|
break;
|
|
case Stat.SPD:
|
|
ret = 'Speed';
|
|
break;
|
|
}
|
|
return toPokemonUpperCase(ret);
|
|
} |