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

This commit is contained in:
Hide_D committed 2022-07-30 14:25:23 +09:00
1 parent e041080773
commit 5ce899ee6e
3 files changed
+16 -6

No files matched your search

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