fix: 이벤트로 모든 장수의 지출이 0인 경우 대비

This commit is contained in:
2022-02-20 14:57:56 +09:00
parent b7b5c7b0da
commit 8f1e713451
+1 -1
View File
@@ -4144,7 +4144,7 @@ class GeneralAI
$wallIncome = getWallIncome($nation['nation'], $nation['level'], $nation['rate'], $nation['capital'], $nation['type'], $cityList);
$income = $riceIncome + $wallIncome;
$outcome = getOutcome(100, $dedicationList);
$outcome = Util::valueFit(getOutcome(100, $dedicationList), 1);
$bill = intval($income / $outcome * 90); // 수입의 90% 만 지급
if ($nation['rice'] + $income - $outcome > $this->nationPolicy->reqNationRice * 2) {