From 4094a08198bb5d150a2949fa77737f57ff211a45 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 15 Oct 2018 00:14:44 +0900 Subject: [PATCH] =?UTF-8?q?NPC=20=EC=82=AC=EB=A0=B9=ED=84=B4=20=EC=9D=BC?= =?UTF-8?q?=EB=B6=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index b044c7a0..babbde75 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -580,8 +580,7 @@ class GeneralAI{ } } - $resBaseType = [['gold', 1], ['rice', 2]]; - [$resName, $resType] = Util::choiceRandom($resBaseType); + $resName = Util::choiceRandom(['gold', 'rice']); usort($userGeneralsID, function($lhs, $rhs) use ($nationGenerals, $resName){ return $nationGenerals[$lhs][$resName] - $nationGenerals[$rhs][$resName];