From 7604273c1a43ca2363a3418334c9a5c8238f409c Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 14 Aug 2019 00:58:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=ED=84=B4=EC=97=90=20=EC=A1=B0?= =?UTF-8?q?=EA=B8=88=20=EC=97=AC=EC=9C=A0=EB=A5=BC=20=EC=A4=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_gamerule.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index fc15e605..45c234cb 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -1031,7 +1031,9 @@ function updateNationState() { } //유니크 아이템 하나 돌리자 - $nationGenList = $db->query('SELECT no, level, belong, horse, weap, book, item FROM general WHERE nation = %i AND killturn >= %i AND npc < 2', $nation['nation'], $admin['killturn']); + $targetKillTurn = $admin['killturn']; + $targetKillTurn -= Util::toInt($targetKillTurn / 10); + $nationGenList = $db->query('SELECT no, level, belong, horse, weap, book, item FROM general WHERE nation = %i AND killturn >= %i AND npc < 2', $nation['nation'], $targetKillTurn); $uniqueLotteryWeightList = []; foreach($nationGenList as $nationGen){