fix: 장수 카드에 부상스탯 미반영

This commit is contained in:
2022-07-30 14:25:23 +09:00
parent e041080773
commit 5ce899ee6e
3 changed files with 16 additions and 6 deletions
+6
View File
@@ -0,0 +1,6 @@
import type { GeneralListItemP0 } from "@/defs/API/Nation";
export function calcInjury(statKey: 'leadership'|'strength'|'intel', general: GeneralListItemP0){
const baseStat = general[statKey];
return Math.round(baseStat * (100 -general.injury) / 100);
}