버그 수정

This commit is contained in:
2020-04-22 02:01:16 +09:00
parent 3c7bee32f8
commit cf7a4a82f3
14 changed files with 85 additions and 73 deletions
+2 -4
View File
@@ -1068,9 +1068,6 @@ class GeneralAI
}
//국고와 '충분한 금액'의 기하평균
$payAmount = sqrt(($enoughMoney - $targetUserGeneral->getVar($resName)) * $resVal);
if($payAmount < $this->nationPolicy->minimumResourceActionAmount){
continue;
}
if ($resVal < $payAmount / 2) {
continue;
@@ -1513,7 +1510,7 @@ class GeneralAI
// 군주 행동
protected function do선(LastTurn $lastTurn): ?NationCommand
protected function do선전포고(LastTurn $lastTurn): ?NationCommand
{
$general = $this->general;
@@ -2843,6 +2840,7 @@ class GeneralAI
}
$nationCities[$cityID] = &$nationCity;
unset($nationCity);
}
$this->nationCities = $nationCities;