From ff4e67a9f6e359793bc644279d7de7aa6dfc97dd Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 26 Jun 2020 02:26:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A4=91=EB=A6=BD=ED=84=B4,=20=EB=82=B4?= =?UTF-8?q?=EC=A0=95=EC=9B=8C=ED=94=84=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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 31fc376d..66d3921e 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2776,6 +2776,9 @@ class GeneralAI 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; + } $city = $this->city; if(Util::randBool(0.6)){ @@ -3116,15 +3119,14 @@ class GeneralAI } - $candidate = []; + $candidate = ['che_물자조달','che_인재탐색']; $nation = $this->nation; if($nation['gold'] < $this->nationPolicy->reqNationGold){ - $candidate[] = 'che_물자조달'; + $candidate = ['che_물자조달']; } if($nation['rice'] < $this->nationPolicy->reqNationRice){ - $candidate[] = 'che_물자조달'; + $candidate = ['che_물자조달']; } - $candidate[] = 'che_인재탐색'; $cmd = buildGeneralCommandClass(Util::choiceRandom($candidate), $this->general, $this->env);