fix: 지급률 계산식에서 부대장이 포함되는 버그 수정

This commit is contained in:
2022-03-28 01:15:20 +09:00
parent 2905390c0a
commit 634e05ea0d
+7 -2
View File
@@ -4100,7 +4100,10 @@ class GeneralAI
$dedicationList = array_map(function (General $general) {
return $general->getRaw();
}, $nationGenerals);
}, array_filter($this->nationGenerals, function (General $rawGeneral) {
return $rawGeneral->getVar('npc') != 5;
}));
$goldIncome = getGoldIncome($nation['nation'], $nation['level'], $nation['rate'], $nation['capital'], $nation['type'], $cityList);
$warIncome = getWarGoldIncome($nation['type'], $cityList);
@@ -4144,7 +4147,9 @@ class GeneralAI
$dedicationList = array_map(function (General $general) {
return $general->getRaw();
}, $nationGenerals);
}, array_filter($this->nationGenerals, function (General $rawGeneral) {
return $rawGeneral->getVar('npc') != 5;
}));
$riceIncome = getRiceIncome($nation['nation'], $nation['level'], $nation['rate'], $nation['capital'], $nation['type'], $cityList);
$wallIncome = getWallIncome($nation['nation'], $nation['level'], $nation['rate'], $nation['capital'], $nation['type'], $cityList);