From 6d1a06a9d92273be0ddf2e38f707f0af3345752b Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 30 May 2020 04:48:33 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B4=EA=B8=89=20=EC=8C=80=20=EC=8B=9C=20?= =?UTF-8?q?=EB=B3=91=EB=9F=89=ED=8C=A8=ED=87=B4=EB=A5=BC=20=EB=8B=B9?= =?UTF-8?q?=ED=95=98=EC=A7=80=20=EC=95=8A=EA=B8=B0=20=EC=9C=84=ED=95=B4=20?= =?UTF-8?q?=EA=B0=95=EC=A0=9C=20=ED=9A=8C=ED=94=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 628f2a03..ff4830ef 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -1877,6 +1877,10 @@ class GeneralAI $cmdList = []; + if($nation['rice'] < GameConst::$baserice){ + return null; + } + if ($genType & self::t통솔장) { if ($develRate['trust'] < 0.98) { $cmd = buildGeneralCommandClass('che_주민선정', $general, $env); @@ -2010,6 +2014,10 @@ class GeneralAI $city = $this->city; $nation = $this->nation; + if($nation['rice'] < GameConst::$baserice){ + return null; + } + $develRate = Util::squeezeFromArray($this->calcCityDevelRate($city), 0); $isSpringSummer = $this->env['month'] <= 6; $cmdList = []; @@ -2331,7 +2339,7 @@ class GeneralAI $riceCost = $crewType->riceWithTech( $this->nation['tech'], $this->fullLeadership*100 * - $general->getRankVar('killcrew')/max($general->getRankVar('deathcrew'),1) + $general->getRankVar('killcrew')/max($general->getRankVar('deathcrew'),1)*1.2 ); $cmd = buildGeneralCommandClass('che_징병', $general, $env, [ @@ -2435,6 +2443,10 @@ class GeneralAI $city = $this->city; $nation = $this->nation; + if($nation['rice'] < GameConst::$baserice){ + return null; + } + $cityID = $city['city']; $nationID = $nation['nation']; @@ -2677,6 +2689,10 @@ class GeneralAI return null; } + if($this->nation['rice'] < GameConst::$baserice){ + return null; + } + $this->categorizeNationCities(); $this->categorizeNationGeneral(); @@ -2705,6 +2721,9 @@ class GeneralAI protected function do내정워프(): ?GeneralCommand { + if($this->nation['rice'] < GameConst::$baserice){ + return null; + } $city = $this->city; if(Util::randBool(0.6)){