버그 수정

This commit is contained in:
2020-04-25 04:33:53 +09:00
parent 4524de492d
commit 4bde1ba9f3
12 changed files with 64 additions and 16 deletions
+25
View File
@@ -3326,6 +3326,31 @@ class GeneralAI
];
}
protected function newChoosePromotion(){
$db = DB::db();
$nation = $this->nation;
$nationID = $nation['nation'];
$minChiefLevel = getNationChiefLevel($nation['level']);
$userChiefCnt = 0;
$strengthSort = [];
$intelSort = [];
foreach(Util::range($minChiefLevel, 12) as $chiefLevel){
if(!key_exists($chiefLevel, $this->chiefGenerals)){
continue;
}
$chief = $this->chiefGenerals[$chiefLevel];
if($chief->getVar('npc') < 2){
$userChiefCnt[$chiefLevel] = $chief;
}
}
}
protected function choosePromotion()
{
$db = DB::db();