From 863fd2bdb5ee752c12d6cf6f71a5835e6711e84d Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 19 Sep 2018 23:56:33 +0900 Subject: [PATCH] =?UTF-8?q?NPC=20=EB=B6=80=EB=8C=80=EC=9E=A5=EC=97=90?= =?UTF-8?q?=EA=B2=8C=20=ED=8F=AC=EC=83=81=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 1a3c43f2..b45a94ec 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -1106,7 +1106,15 @@ function NPCStaffWork($general, $nation, $dipState){ } } else{ // 포상 $compNpcWar = $npcWarGeneralsID?$nationGenerals[$npcWarGeneralsID[0]]:null; - $compNpcCivil = $npcCivilGeneralsID?$nationGenerals[$npcCivilGeneralsID[0]]:null; + $compNpcCivil = null; + foreach($npcCivilGeneralsID??[] as $npcCivilID){ + $npcCivil = $nationGenerals[$npcCivilID]; + if($npcCivil['npc'] == 5){ + continue; + } + $compNpcCivil = $npcCivil; + break; + } if($compNpcWar && $compNpcWar[$resName] < 21000){ $amount = min(100, intdiv(($nation[$resName]-($resName=='rice'?(GameConst::$baserice):(GameConst::$basegold))), 5000)*10 + 10);