pokerogue/src/data/pokemon-stat.ts

33 lines
499 B
TypeScript
Raw Normal View History

2023-03-28 19:54:52 +01:00
export enum Stat {
HP = 0,
ATK,
DEF,
SPATK,
SPDEF,
SPD
};
export function getStatName(stat: Stat) {
2023-04-02 01:06:44 +01:00
let ret: string;
2023-03-28 19:54:52 +01:00
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;
2023-03-28 19:54:52 +01:00
}