v0.8 업데이트 #116

Closed
Hide_D wants to merge 209 commits from custom_map into devel
Showing only changes of commit bed4b87a54 - Show all commits
+2 -4
View File
@@ -994,9 +994,7 @@ function NPCStaffWork($general, $nation, $dipState){
foreach ($npcCivilGeneralsID as $id){
$avgNpcCivilRes += $nationGenerals[$id][$resName];
}
if($npcCivilGeneralsID){
$avgNpcCivilRes /= max(1, count($npcCivilGeneralsID));
}
$avgNpcCivilRes /= max(1, count($npcCivilGeneralsID));
@@ -1063,7 +1061,7 @@ function NPCStaffWork($general, $nation, $dipState){
if($compNpcWar && $compNpcWar[$resName] < 21000){
$amount = min(100, intdiv(($nation[$resName]-($resName=='rice'?(GameConst::$baserice):(GameConst::$basegold))), 5000)*10 + 10);
$commandList[EncodeCommand($resType, $compNpcWar['no'], $amount, 23)] = 2;
$commandList[EncodeCommand($resType, $compNpcWar['no'], $amount, 23)] = 3;
}
if($compNpcCivil && $compNpcCivil[$resName] < $minRes){
$amount = intdiv($minRes+99, 100);