From cbc8f94b0ae2321e343b19928207e311cd0b0d74 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 16 Nov 2021 20:01:50 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EA=B5=AD=EA=B3=A0=EA=B0=80=202000=20?= =?UTF-8?q?=EB=B0=91=EC=9C=BC=EB=A1=9C=20=EA=B0=80=EB=8D=94=EB=9D=BC?= =?UTF-8?q?=EB=8F=84=20=EB=AC=B4=EC=A1=B0=EA=B1=B4=20=EB=AC=BC=EC=9E=90?= =?UTF-8?q?=EC=A1=B0=EB=8B=AC=EB=A7=8C=20=ED=95=98=EC=A7=80=EB=8A=94=20?= =?UTF-8?q?=EC=95=8A=EA=B2=8C=20=EC=88=98=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 91e6d66f..de87d778 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2091,7 +2091,7 @@ class GeneralAI $cmdList = []; - if ($nation['rice'] < GameConst::$baserice) { + if (($nation['rice'] < GameConst::$baserice) && Util::randBool(0.3)) { return null; } @@ -2226,7 +2226,7 @@ class GeneralAI $city = $this->city; $nation = $this->nation; - if ($nation['rice'] < GameConst::$baserice) { + if (($nation['rice'] < GameConst::$baserice) && Util::randBool(0.3)) { return null; } @@ -2665,7 +2665,7 @@ class GeneralAI $city = $this->city; $nation = $this->nation; - if ($nation['rice'] < GameConst::$baserice) { + if (($nation['rice'] < GameConst::$baserice) && Util::randBool(0.7)) { return null; } @@ -2938,10 +2938,6 @@ class GeneralAI return null; } - if ($this->nation['rice'] < GameConst::$baserice) { - return null; - } - $this->categorizeNationCities(); $this->categorizeNationGeneral(); @@ -2970,9 +2966,6 @@ class GeneralAI protected function do내정워프(): ?GeneralCommand { - if ($this->nation['rice'] < GameConst::$baserice) { - return null; - } if (($this->genType & self::t통솔장) && in_array($this->dipState, [self::d징병, self::d직전, self::d전쟁])) { return null; }