fix: 후방 워프 인구 충분 판단 기준 수정
This commit is contained in:
+11
-2
@@ -659,7 +659,10 @@ class GeneralAI
|
|||||||
|
|
||||||
/** @var General */
|
/** @var General */
|
||||||
$pickedGeneral = Util::choiceRandom($generalCadidates);
|
$pickedGeneral = Util::choiceRandom($generalCadidates);
|
||||||
$minRecruitPop = $pickedGeneral->getLeadership(false) * 100 + GameConst::$minAvailableRecruitPop;
|
$minRecruitPop = $this->fullLeadership * 100 + GameConst::$minAvailableRecruitPop;
|
||||||
|
if(!$this->generalPolicy->can한계징병){
|
||||||
|
$minRecruitPop = max($minRecruitPop, $this->fullLeadership * 100 + $this->nationPolicy->minNPCRecruitCityPopulation);
|
||||||
|
}
|
||||||
|
|
||||||
$recruitableCityList = [];
|
$recruitableCityList = [];
|
||||||
|
|
||||||
@@ -955,7 +958,10 @@ class GeneralAI
|
|||||||
|
|
||||||
/** @var General */
|
/** @var General */
|
||||||
$pickedGeneral = Util::choiceRandom($generalCadidates);
|
$pickedGeneral = Util::choiceRandom($generalCadidates);
|
||||||
$minRecruitPop = $pickedGeneral->getLeadership(false) * 100 + GameConst::$minAvailableRecruitPop;
|
$minRecruitPop = $this->fullLeadership * 100 + GameConst::$minAvailableRecruitPop;
|
||||||
|
if(!$this->generalPolicy->can한계징병){
|
||||||
|
$minRecruitPop = max($minRecruitPop, $this->fullLeadership * 100 + $this->nationPolicy->minNPCRecruitCityPopulation);
|
||||||
|
}
|
||||||
|
|
||||||
$recruitableCityList = [];
|
$recruitableCityList = [];
|
||||||
|
|
||||||
@@ -2734,6 +2740,9 @@ class GeneralAI
|
|||||||
protected function do후방워프(): ?GeneralCommand
|
protected function do후방워프(): ?GeneralCommand
|
||||||
{
|
{
|
||||||
$minRecruitPop = $this->fullLeadership * 100 + GameConst::$minAvailableRecruitPop;
|
$minRecruitPop = $this->fullLeadership * 100 + GameConst::$minAvailableRecruitPop;
|
||||||
|
if(!$this->generalPolicy->can한계징병){
|
||||||
|
$minRecruitPop = max($minRecruitPop, $this->fullLeadership * 100 + $this->nationPolicy->minNPCRecruitCityPopulation);
|
||||||
|
}
|
||||||
if (in_array($this->dipState, [self::d평화, self::d선포])) {
|
if (in_array($this->dipState, [self::d평화, self::d선포])) {
|
||||||
LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 외교 상태", $this->dipState);
|
LogText("{$this->general->getName()}, {$this->general->getID()} 후방워프 불가: 외교 상태", $this->dipState);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user