[cac19cad4d]수비 우선 순위를 부상여부, 수뇌여부, 훈사 여부를 반영하도록 변경

This commit is contained in:
2019-04-07 19:48:51 +09:00
parent 42f08f5027
commit 44295de206
+10 -9
View File
@@ -173,15 +173,16 @@ function extractBattleOrder($general){
return 0;
}
return (
$general['leader'] +
$general['power'] +
$general['intel'] +
getWeapEff($general['weap']) +
getHorseEff($general['horse']) +
getBookEff($general['book']) +
$general['crew'] / 100
);
$staticNation = getNationStaticInfo($general['nation']);
setLeadershipBonus($general, $staticNation['level']);
$totalStat =
getGeneralLeadership($general, true, true, true, true) +
getGeneralPower($general, true, true, true, true) +
getGeneralIntel($general, true, true, true, true);
$totalCrew = $general['crew'] / 10000 * $general['train'] * $general['atmos'];
return $totalStat + $totalCrew / 100;
}
function processWar_NG(