feat: 게임 시작 후, 거병/건국 기간, 출병 제한 기간을 안내

This commit is contained in:
2022-05-11 02:22:40 +09:00
parent e00021871a
commit 3252db0fbe
4 changed files with 43 additions and 8 deletions
@@ -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();
}
}