From 4bb1bac5d1a2ae80ba48a260eefe4e4c82772c0d Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 16 Mar 2022 00:38:18 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EC=9C=A0=EC=A0=80=EC=9E=A5=20=EC=9E=90?= =?UTF-8?q?=EB=8F=99=20=EA=B8=88=EC=8C=80=EB=A7=A4=EB=A7=A4=20=EA=B8=B0?= =?UTF-8?q?=EC=A4=80=20=EC=B6=94=EA=B0=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 28be3b49..4c0d217c 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2378,6 +2378,9 @@ class GeneralAI } $tryBuying = false; + if ($general->getNPCType() < 2 && $relGold >= $goldCost * 3 && $relRice >= $riceCost * 3){ + return null; + } if ($this->generalPolicy->can상인무시) { if ($relRice * 1.5 < $relGold && $relRice < $riceCost * 2) { $tryBuying = true; @@ -2385,9 +2388,6 @@ class GeneralAI $tryBuying = true; } } else { - if ($relGold >= $goldCost * 3 && $relRice >= $riceCost * 3){ - return null; - } if ($relRice * 2 < $relGold && $relRice < $riceCost * 3) { $tryBuying = true; }