중립턴, 내정워프 수정
This commit is contained in:
@@ -2776,6 +2776,9 @@ class GeneralAI
|
|||||||
if($this->nation['rice'] < GameConst::$baserice){
|
if($this->nation['rice'] < GameConst::$baserice){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if(($this->genType & self::t통솔장)&&in_array($this->dipState, [self::d징병, self::d직전, self::d전쟁])){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$city = $this->city;
|
$city = $this->city;
|
||||||
if(Util::randBool(0.6)){
|
if(Util::randBool(0.6)){
|
||||||
@@ -3116,15 +3119,14 @@ class GeneralAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$candidate = [];
|
$candidate = ['che_물자조달','che_인재탐색'];
|
||||||
$nation = $this->nation;
|
$nation = $this->nation;
|
||||||
if($nation['gold'] < $this->nationPolicy->reqNationGold){
|
if($nation['gold'] < $this->nationPolicy->reqNationGold){
|
||||||
$candidate[] = 'che_물자조달';
|
$candidate = ['che_물자조달'];
|
||||||
}
|
}
|
||||||
if($nation['rice'] < $this->nationPolicy->reqNationRice){
|
if($nation['rice'] < $this->nationPolicy->reqNationRice){
|
||||||
$candidate[] = 'che_물자조달';
|
$candidate = ['che_물자조달'];
|
||||||
}
|
}
|
||||||
$candidate[] = 'che_인재탐색';
|
|
||||||
|
|
||||||
|
|
||||||
$cmd = buildGeneralCommandClass(Util::choiceRandom($candidate), $this->general, $this->env);
|
$cmd = buildGeneralCommandClass(Util::choiceRandom($candidate), $this->general, $this->env);
|
||||||
|
|||||||
Reference in New Issue
Block a user