mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-13 09:06:07 +00:00
83c70889fc
Implement trainer battles; add dialogue functionality; add random session seed for predictable random results; remove capitalization from text; add full party heal after every 10 waves
33 lines
499 B
TypeScript
33 lines
499 B
TypeScript
export enum Stat {
|
|
HP = 0,
|
|
ATK,
|
|
DEF,
|
|
SPATK,
|
|
SPDEF,
|
|
SPD
|
|
};
|
|
|
|
export function getStatName(stat: Stat) {
|
|
let ret: string;
|
|
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 ret;
|
|
} |