feat: 이민족 등장

This commit is contained in:
2021-03-28 16:31:01 +09:00
parent 2ea9655f6b
commit e2ad417306
2 changed files with 32 additions and 11 deletions
@@ -12,7 +12,13 @@ class AutoDeleteInvader extends \sammo\Event\Action{
}
public function run(array $env){
$db = DB::db();
if(getNationStaticInfo($this->nationID)===null){
$db->update('general', [
'killturn'=>5
], 'nation = 0 AND npc = 9');
$eventID = Util::array_get($env['currentEventID']);
$db->delete('event', 'id = %i', $eventID);
return [__CLASS__, "Not Exists"];
}
$db = DB::db();