From c3b4d54414259048ff08d6f4e96af0543ac072db Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 26 May 2020 21:44:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=B4=EC=A0=95=20=EC=9B=8C=ED=94=84=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GeneralAI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 599e8874..fdf381c8 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -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){