From ddb4011b5d8317e4eb5b1498674411a642874fb9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 24 Apr 2018 02:12:04 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=B0=EC=88=98=20=EC=A1=B0=EA=B1=B4=20?= =?UTF-8?q?=EA=B0=95=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 69d93ab1..63f16a0f 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -587,7 +587,7 @@ function processAI($no) { if(rand() % 2 == 0) { $type = "gold"; $type2 = 1; } else { $type = "rice"; $type2 = 2; } - if($nation[$type] < $type2*2000) { // 몰수 + if($nation[$type] < $type2*3000) { // 몰수 // 몰수 대상 list($npcGenID, $npcGenValue) = $db->queryFirstList( 'SELECT `no`, %b FROM general WHERE nation=%i AND `no`!=%i AND %b>3000 AND npc >= 2 ORDER BY %b DESC LIMIT 1', @@ -657,14 +657,14 @@ function processAI($no) { if ($genID) { if($genID === $npcGenID){ - $amount = min(100, intdiv(($nation[$type]-GameConst::$baserice), 5000)*10 + 10); + $amount = min(100, intdiv(($nation[$type]-($type=='rice'?(GameConst::$baserice):(GameConst::$basegold))), 5000)*10 + 10); if($npcLeadership < 40){ $amount = min($amount, intdiv($resrc, 1000)*10 + 10); } } else{ - $amount = min(100, intdiv(($nation[$type]-GameConst::$baserice), 2000)*10 + 10); + $amount = min(100, intdiv(($nation[$type]-($type=='rice'?(GameConst::$baserice):(GameConst::$basegold))), 2000)*10 + 10); } // 포상