fix: 장수 카드에 부상스탯 미반영
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user