pokerogue/src/data/pokemon-stat.ts
Flashfyre 83c70889fc Implement trainer battles and various changes
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
2023-10-18 18:01:15 -04:00

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;
}