fix: 봉급 계산에서 부대장 처리를 하지 않은 문제 수정

- 전체 지출 계산에만 실수 발생
This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent 06786aff28
commit aef1cbd201
+1 -1
View File
@@ -4137,7 +4137,7 @@ class GeneralAI
$dedicationList = array_map(function (General $general) {
return $general->getRaw();
}, array_filter($this->nationGenerals, function (General $rawGeneral) {
return $rawGeneral->getVar('officer_level') != 5;
return $rawGeneral->getVar('npc') != 5;
}));
$riceIncome = getRiceIncome($nation['nation'], $nation['level'], $nation['rate'], $nation['capital'], $nation['type'], $cityList);