버그 수정
This commit is contained in:
@@ -1163,7 +1163,7 @@ function checkStatistic() {
|
|||||||
|
|
||||||
$crewtypeHistsStr = join(', ', array_map(function($histPair){
|
$crewtypeHistsStr = join(', ', array_map(function($histPair){
|
||||||
[$histKey, $cnt] = $histPair;
|
[$histKey, $cnt] = $histPair;
|
||||||
return GameUnitConst::byID($hisKey)->getShortName().'('.$cnt.')';
|
return GameUnitConst::byID($histKey)->getShortName().'('.$cnt.')';
|
||||||
}, Util::convertDictToArray($crewtypeHists)));
|
}, Util::convertDictToArray($crewtypeHists)));
|
||||||
|
|
||||||
$db->insert('statistic', [
|
$db->insert('statistic', [
|
||||||
|
|||||||
@@ -88,9 +88,8 @@ function displaySpecialDomesticInfo(?string $type):string{
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function displayItemInfo(?int $type):string{
|
function displayItemInfo(?string $type):string{
|
||||||
$info = getItemInfo($type);
|
[$text, $info] = getItemInfo($type);
|
||||||
$text = getItemName($type);
|
|
||||||
|
|
||||||
$templates = new \League\Plates\Engine(__dir__.'/templates');
|
$templates = new \League\Plates\Engine(__dir__.'/templates');
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class che_기술연구 extends che_상업투자{
|
|||||||
$general = $this->generalObj;
|
$general = $this->generalObj;
|
||||||
|
|
||||||
$this->setCity();
|
$this->setCity();
|
||||||
$this->setNation();
|
$this->setNation(['tech']);
|
||||||
|
|
||||||
[$reqGold, $reqRice] = $this->getCost();
|
[$reqGold, $reqRice] = $this->getCost();
|
||||||
|
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ class General implements iAction{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getLeadership($withInjury = true, $withItem = true, $withStatAdjust = true, $useFloor = true):float{
|
function getLeadership($withInjury = true, $withItem = true, $withStatAdjust = true, $useFloor = true):float{
|
||||||
return $this->getStatValue('leadership', $withInjury, $withItem, $withStatAdjust, $useFloor);
|
return $this->getStatValue('leader', $withInjury, $withItem, $withStatAdjust, $useFloor);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPower($withInjury = true, $withItem = true, $withStatAdjust = true, $useFloor = true):float{
|
function getPower($withInjury = true, $withItem = true, $withStatAdjust = true, $useFloor = true):float{
|
||||||
|
|||||||
@@ -147,7 +147,11 @@ class GeneralAI{
|
|||||||
$this->dipState = self::d직전;
|
$this->dipState = self::d직전;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(in_array($this->dipState, [self::d평화, self::d선포]) && $env['startyear'] + 2 == $env['year'] && $env['month'] > 5){
|
if(
|
||||||
|
in_array($this->dipState, [self::d평화, self::d선포]) ||
|
||||||
|
$env['year'] >= $env['startyear'] + 3 ||
|
||||||
|
($env['year'] && $env['startyear'] + 2 && $env['month'] > 5)
|
||||||
|
){
|
||||||
$this->dipState = self::d징병;
|
$this->dipState = self::d징병;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -881,7 +885,7 @@ class GeneralAI{
|
|||||||
if($nationGeneral->rice < 700 * $tech){
|
if($nationGeneral->rice < 700 * $tech){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if($generalCity->front){
|
if($generalCity['front']){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if($nationGeneral->train * $nationGeneral->atmos < 75 * 75){
|
if($nationGeneral->train * $nationGeneral->atmos < 75 * 75){
|
||||||
|
|||||||
Reference in New Issue
Block a user