긴급 쌀 시 병량패퇴를 당하지 않기 위해 강제 회피
This commit is contained in:
+20
-1
@@ -1877,6 +1877,10 @@ class GeneralAI
|
|||||||
|
|
||||||
$cmdList = [];
|
$cmdList = [];
|
||||||
|
|
||||||
|
if($nation['rice'] < GameConst::$baserice){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if ($genType & self::t통솔장) {
|
if ($genType & self::t통솔장) {
|
||||||
if ($develRate['trust'] < 0.98) {
|
if ($develRate['trust'] < 0.98) {
|
||||||
$cmd = buildGeneralCommandClass('che_주민선정', $general, $env);
|
$cmd = buildGeneralCommandClass('che_주민선정', $general, $env);
|
||||||
@@ -2010,6 +2014,10 @@ class GeneralAI
|
|||||||
$city = $this->city;
|
$city = $this->city;
|
||||||
$nation = $this->nation;
|
$nation = $this->nation;
|
||||||
|
|
||||||
|
if($nation['rice'] < GameConst::$baserice){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$develRate = Util::squeezeFromArray($this->calcCityDevelRate($city), 0);
|
$develRate = Util::squeezeFromArray($this->calcCityDevelRate($city), 0);
|
||||||
$isSpringSummer = $this->env['month'] <= 6;
|
$isSpringSummer = $this->env['month'] <= 6;
|
||||||
$cmdList = [];
|
$cmdList = [];
|
||||||
@@ -2331,7 +2339,7 @@ class GeneralAI
|
|||||||
$riceCost = $crewType->riceWithTech(
|
$riceCost = $crewType->riceWithTech(
|
||||||
$this->nation['tech'],
|
$this->nation['tech'],
|
||||||
$this->fullLeadership*100 *
|
$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, [
|
$cmd = buildGeneralCommandClass('che_징병', $general, $env, [
|
||||||
@@ -2435,6 +2443,10 @@ class GeneralAI
|
|||||||
$city = $this->city;
|
$city = $this->city;
|
||||||
$nation = $this->nation;
|
$nation = $this->nation;
|
||||||
|
|
||||||
|
if($nation['rice'] < GameConst::$baserice){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$cityID = $city['city'];
|
$cityID = $city['city'];
|
||||||
$nationID = $nation['nation'];
|
$nationID = $nation['nation'];
|
||||||
|
|
||||||
@@ -2677,6 +2689,10 @@ class GeneralAI
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->nation['rice'] < GameConst::$baserice){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$this->categorizeNationCities();
|
$this->categorizeNationCities();
|
||||||
$this->categorizeNationGeneral();
|
$this->categorizeNationGeneral();
|
||||||
|
|
||||||
@@ -2705,6 +2721,9 @@ class GeneralAI
|
|||||||
|
|
||||||
protected function do내정워프(): ?GeneralCommand
|
protected function do내정워프(): ?GeneralCommand
|
||||||
{
|
{
|
||||||
|
if($this->nation['rice'] < GameConst::$baserice){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$city = $this->city;
|
$city = $this->city;
|
||||||
if(Util::randBool(0.6)){
|
if(Util::randBool(0.6)){
|
||||||
|
|||||||
Reference in New Issue
Block a user