From d4906eec5af72015958f296e6234d4e1526a2067 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 28 Feb 2021 01:33:58 +0900 Subject: [PATCH] =?UTF-8?q?=EB=94=94=EB=B2=84=EA=B7=B8=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index e1f1ddbe..359c6c60 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2670,18 +2670,22 @@ class GeneralAI protected function do후방워프(): ?GeneralCommand { if (in_array($this->dipState, [self::d평화, self::d선포])) { + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 외교 상태", $this->dipState); return null; } if(!$this->generalPolicy->can징병){ + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 징병 금지", ''); return null; } if(!($this->genType & self::t통솔장)){ + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 통솔장", [$this->genType, $this->general->getLeadership(false)]); return null; } if($this->general->getVar('crew') >= $this->nationPolicy->minWarCrew){ + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 병력 충분", [$this->general->getVar('crew'), $this->nationPolicy->minWarCrew]); return null; } @@ -2693,6 +2697,7 @@ class GeneralAI } else{ if($city['pop']/$city['pop_max'] >= $this->nationPolicy->safeRecruitCityPopulationRatio){ + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 인구 충분", [$city['pop']/$city['pop_max'], $this->nationPolicy->safeRecruitCityPopulationRatio]); return null; } } @@ -2733,6 +2738,7 @@ class GeneralAI } if(!$recruitableCityList){ + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 배후 도시", [count($this->backupCities), count($this->supplyCities)]); return null; } @@ -2744,6 +2750,7 @@ class GeneralAI if(!$cmd->hasFullConditionMet()){ + LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 조건 불충족", $cmd->getArg()); return null; }