warning 수정

This commit is contained in:
2020-06-12 20:28:50 +09:00
parent c21c14825a
commit b6e307660f
3 changed files with 509 additions and 517 deletions
+2 -2
View File
@@ -534,7 +534,7 @@ class GeneralAI
if(!key_exists($userGeneral->getCityID(), $this->nationCities)){
continue;
}
$city = $this->supplyCities[$userGeneral->getCityID()];
$city = $this->nationCities[$userGeneral->getCityID()];
$troopLeaderID = $userGeneral->getVar('troop');
if(!$troopLeaderID || !key_exists($troopLeaderID, $this->troopLeaders)){
continue;
@@ -2778,7 +2778,7 @@ class GeneralAI
if($city['city'] === $candidate['city']){
continue;
}
$realDevelRate = 0;
$realDevelRate = 0.0001; //하단의 나눗셈
foreach($this->calcCityDevelRate($candidate) as $develKey => [$develVal, $develType]){
if(!($this->genType & $develType)){