버그 수정

This commit is contained in:
2020-04-30 19:29:39 +09:00
parent b24eabc82a
commit cf1dc17298
6 changed files with 60 additions and 57 deletions
+12 -2
View File
@@ -1575,10 +1575,20 @@ class GeneralAI
$avgRice += $general->getVar('rice');
$genCnt += 1;
}
foreach($this->userWarGenerals as $general){
foreach($this->npcCivilGenerals as $general){
$avgGold += $general->getVar('gold');
$avgRice += $general->getVar('rice');
$genCnt += 2;
$genCnt += 1;
}
foreach($this->userWarGenerals as $general){
$avgGold += $general->getVar('gold') / 2;
$avgRice += $general->getVar('rice') / 2;
$genCnt += 1;
}
foreach($this->userCivilGenerals as $general){
$avgGold += $general->getVar('gold') / 2;
$avgRice += $general->getVar('rice') / 2;
$genCnt += 1;
}
$avgGold += $nation['gold'];
$avgRice += $nation['rice'];