2023-04-20 15:46:05 -04:00
|
|
|
import { BattleStat, getBattleStatName } from "./battle-stat";
|
|
|
|
|
|
|
|
export enum TempBattleStat {
|
|
|
|
ATK,
|
|
|
|
DEF,
|
|
|
|
SPATK,
|
|
|
|
SPDEF,
|
|
|
|
SPD,
|
|
|
|
ACC,
|
|
|
|
CRIT
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getTempBattleStatName(tempBattleStat: TempBattleStat) {
|
2024-05-23 17:03:10 +02:00
|
|
|
if (tempBattleStat === TempBattleStat.CRIT) {
|
|
|
|
return "critical-hit ratio";
|
|
|
|
}
|
2023-04-20 15:46:05 -04:00
|
|
|
return getBattleStatName(tempBattleStat as integer as BattleStat);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getTempBattleStatBoosterItemName(tempBattleStat: TempBattleStat) {
|
|
|
|
switch (tempBattleStat) {
|
2024-05-23 17:03:10 +02:00
|
|
|
case TempBattleStat.ATK:
|
|
|
|
return "X Attack";
|
|
|
|
case TempBattleStat.DEF:
|
|
|
|
return "X Defense";
|
|
|
|
case TempBattleStat.SPATK:
|
|
|
|
return "X Sp. Atk";
|
|
|
|
case TempBattleStat.SPDEF:
|
|
|
|
return "X Sp. Def";
|
|
|
|
case TempBattleStat.SPD:
|
|
|
|
return "X Speed";
|
|
|
|
case TempBattleStat.ACC:
|
|
|
|
return "X Accuracy";
|
|
|
|
case TempBattleStat.CRIT:
|
|
|
|
return "Dire Hit";
|
2023-04-20 15:46:05 -04:00
|
|
|
}
|
2024-05-23 17:03:10 +02:00
|
|
|
}
|