버그 수정

This commit is contained in:
Hide_D committed 2020-04-25 04:33:53 +09:00
1 parent 4524de492d
commit 4bde1ba9f3
12 files changed
+64 -16

No files matched your search

+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();