feat: 이민족 등장

This commit is contained in:
Hide_D committed 2021-03-28 16:31:01 +09:00
1 parent 2ea9655f6b
commit e2ad417306
2 files changed
+32 -11

No files matched your search

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