fix: RaiseInvader의 중첩 호줄 대비
- isunited 변수를 빠르게 1로 설정 - 만약 RaiseInavder를 빠르게 두번 호출하더라도 isunited 변수를 검사하게 하여 대응 가능
This commit is contained in:
@@ -93,6 +93,9 @@ class RaiseInvader extends \sammo\Event\Action
|
|||||||
public function run(array $env)
|
public function run(array $env)
|
||||||
{
|
{
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
|
$gameStor->setValue('isunited', 1);
|
||||||
|
|
||||||
$npcEachCount = $this->npcEachCount;
|
$npcEachCount = $this->npcEachCount;
|
||||||
|
|
||||||
/** @var \sammo\CityInitDetail[] */
|
/** @var \sammo\CityInitDetail[] */
|
||||||
@@ -260,8 +263,6 @@ class RaiseInvader extends \sammo\Event\Action
|
|||||||
'secu' => $db->sqleval('secu_max'),
|
'secu' => $db->sqleval('secu_max'),
|
||||||
], true);
|
], true);
|
||||||
|
|
||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
|
||||||
$gameStor->setValue('isunited', 1);
|
|
||||||
refreshNationStaticInfo();
|
refreshNationStaticInfo();
|
||||||
|
|
||||||
$logger = new ActionLogger(0, 0, $year, $env['month']);
|
$logger = new ActionLogger(0, 0, $year, $env['month']);
|
||||||
|
|||||||
Reference in New Issue
Block a user