내정 워프 버그 수정

This commit is contained in:
2020-05-26 21:44:03 +09:00
parent 08548181ed
commit c3b4d54414
+2 -2
View File
@@ -2740,7 +2740,7 @@ class GeneralAI
}
$realDevelRate = 0;
foreach($this->calcCityDevelRate($city) as $develKey => [$develVal, $develType]){
foreach($this->calcCityDevelRate($candidate) as $develKey => [$develVal, $develType]){
if(!($this->genType & $develType)){
continue;
}
@@ -2754,7 +2754,7 @@ class GeneralAI
continue;
}
$candidateCities[$city['city']] = $realDevelRate / \sqrt(count($city['generals']??[]) + 1);
$candidateCities[$city['city']] = 1 / ($realDevelRate * \sqrt(count($city['generals']??[]) + 1));
}
if(!$candidateCities){