From 6502843d6cc1e617cd34538b432c4ef372924000 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 23 Jun 2018 05:22:49 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=AC=EC=83=81=20=EC=A0=84=EB=9E=B5=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index adac5bb8..676de481 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -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);