From 3f21e28ef790c04271b8247dec3b13698259fde7 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 18 Apr 2018 21:24:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EC=A0=80=EC=97=90=EA=B2=8C=20?= =?UTF-8?q?=ED=8F=AC=EC=83=81=EB=9F=89=EC=9D=B4=20=ED=99=95=EC=8B=A4?= =?UTF-8?q?=ED=9E=88=20=EB=8D=94=20=EB=A7=8E=EC=95=84=EC=A7=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index acba93d8..f6c3a445 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -636,7 +636,13 @@ function processAI($no) { } if ($genID) { - $amount = min(100, intdiv(($nation[$type]-GameConst::$baserice), 5000)*10 + 10); + if($genID === $npcGenID){ + $amount = min(100, intdiv(($nation[$type]-GameConst::$baserice), 5000)*10 + 10); + } + else{ + $amount = min(100, intdiv(($nation[$type]-GameConst::$baserice), 2000)*10 + 10); + } + // 포상 $command = EncodeCommand($type2, $genID, $amount, 23); // 금,쌀 1000단위 포상 }