Refactor source files and add berries
This commit is contained in:
1 parent
6135243641
commit
3546f3b5a7
103 files changed
+2598
-1171
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import { toPokemonUpperCase } from "../utils";
|
||||
|
||||
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 toPokemonUpperCase(ret);
|
||||
}
|
||||
Reference in new issue
Block a user