feat: 베팅 시스템 재 설계, 이벤트 테이블 수정 #205

Merged
Hide_D merged 45 commits from ng_bet into devel 2022-02-05 16:43:28 +09:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 466faf8179 - Show all commits
+1 -1
View File
@@ -57,7 +57,7 @@ class OpenNationBetting extends \sammo\Event\Action
'target' => 'DESTROY_NATION',
'priority' => 1000,
'condition' => Json::encode(
["RemainNation", $this->nationCnt],
["RemainNation", "<=", $this->nationCnt],
),
'action' => Json::encode([
["FinishNationBetting", $bettingID],
+4
View File
@@ -204,12 +204,16 @@ class RaiseInvader extends \sammo\Event\Action
$nationObj->postBuild($env);
refreshNationStaticInfo();
$db->insert('event', [
'target' => 'month',
'priority' => 1000,
'condition' => Json::encode(true),
'action' => Json::encode([["AutoDeleteInvader", $invaderNationID]]),
]);
}
$db->insert('event', [
'target' => 'month',
'priority' => 1000,
'condition' => Json::encode(true),
'action' => Json::encode([["InvaderEnding"]]),
]);