feat: 게임 시작 후, 거병/건국 기간, 출병 제한 기간을 안내
This commit is contained in:
@@ -7,7 +7,7 @@ use sammo\ActionLogger;
|
||||
|
||||
class NoticeToHistoryLog extends \sammo\Event\Action
|
||||
{
|
||||
public function __construct(private string $msg)
|
||||
public function __construct(private string $msg, private int $type = ActionLogger::YEAR_MONTH)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class NoticeToHistoryLog extends \sammo\Event\Action
|
||||
throw new RuntimeException('year, month가 없음');
|
||||
}
|
||||
$logger = new ActionLogger(0, 0, $env['year'], $env['month']);
|
||||
$logger->pushGlobalHistoryLog($this->msg);
|
||||
$logger->pushGlobalHistoryLog($this->msg, $this->type);
|
||||
$logger->flush();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user