fix: CreateManyNPC 경고 제거
This commit is contained in:
@@ -70,6 +70,7 @@ class CreateManyNPC extends \sammo\Event\Action
|
|||||||
if ($this->fillCnt) {
|
if ($this->fillCnt) {
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$nations = $db->queryFirstColumn('SELECT nation FROM general WHERE npc < 3 AND officer_level = 12');
|
$nations = $db->queryFirstColumn('SELECT nation FROM general WHERE npc < 3 AND officer_level = 12');
|
||||||
|
$regGens = 0;
|
||||||
if($nations){
|
if($nations){
|
||||||
$regGens = $db->queryFirstField('SELECT count(*) FROM general WHERE nation IN %li AND npc < 4', $nations);
|
$regGens = $db->queryFirstField('SELECT count(*) FROM general WHERE nation IN %li AND npc < 4', $nations);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user