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

This commit is contained in:
2018-11-26 15:17:51 +09:00
parent fe3355e08e
commit 6ea3ec700a
2 changed files with 10 additions and 1886 deletions
+10 -9
View File
@@ -180,15 +180,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(