From 0b41ee0a29b13473ae2c25db9af671fee8f0c9c6 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 23 Jun 2018 12:57:11 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=B4=EC=A0=95=20=EB=B0=9C=EB=A0=B9?= =?UTF-8?q?=EC=8B=9C=20=EB=82=B4=EC=A0=95=20=EC=B0=AC=EA=B3=B3=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=EB=8A=94=20=EC=95=88=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 7af75e93..395e5d17 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -1092,14 +1092,21 @@ function NPCStaffWork($general, $nation, $dipState){ $minCity = null; $maxCity = null; foreach($nationCities as $nationCity){ + if($nationCity['dev']>=95){ + continue; + } if($nationCity['supply']){ $minCity = $nationCity; break; } + } //reverse_order T_T $maxCity = end($nationCities); + if(!$minCity){ + $minCity = $maxCity; + } while($maxCity['city'] !== $minCity['city']){ if($nationCity['supply']){ break;