버그 수정

This commit is contained in:
2020-04-26 03:45:19 +09:00
parent be282db1c2
commit b48b09249e
2 changed files with 18 additions and 12 deletions
+2 -1
View File
@@ -3049,6 +3049,7 @@ class GeneralAI
$month = $this->env['month'];
if($npcType >= 2 && $general->getVar('officer_level') == 12){
LogText('action', "Try Boss {$general->getID()}, {$general->getName()}");
if (in_array($month, [1, 4, 7, 10])) {
$this->choosePromotion();
} else if ($month == 12) {
@@ -3387,7 +3388,7 @@ class GeneralAI
}
}
$generals = $this->userGenerals;
$generals = $this->nationGenerals;
uasort($generals, function(General $lhs, General $rhs){
$lhsStat = $lhs->getLeadership(false, false, false, false) * 2
+ $lhs->getStrength(false, false, false, false)