misc: 1월 접속 공지 위치 이동

This commit is contained in:
2023-03-12 17:02:30 +09:00
parent 7b1a9157e1
commit e595656416
2 changed files with 1 additions and 6 deletions
+1
View File
@@ -14,6 +14,7 @@ class NewYear extends \sammo\Event\Action
$logger = new ActionLogger(0, 0, $year, $month, false);
$logger->pushGlobalActionLog("<C>{$year}</>년이 되었습니다.");
$logger->pushGlobalActionLog("<S>모두들 즐거운 게임 하고 계신가요? ^^ <Y>매너 있는 플레이</> 부탁드리고, 게임보단 <L>건강이 먼저</>란점, 잊지 마세요!</>", $logger::NOTICE_YEAR_MONTH);
$logger->flush(); //TODO: globalAction류는 전역에서 관리하는것이 좋을 듯.
$db = DB::db();
@@ -94,11 +94,5 @@ class ProcessSemiAnnual extends \sammo\Event\Action
$db->update('nation', [
$resource => $db->sqleval('IF(%b > 100000, %b * 0.95, IF(%b > 10000, %b * 0.97, %b * 0.99))', $resource, $resource, $resource, $resource, $resource)
], '%b > 1000', $resource);
[$year, $month] = [$env['year'], $env['month']];
if($month == 1){
pushGlobalHistoryLog(["<R>★</>{$year}{$month}월: <S>모두들 즐거운 게임 하고 계신가요? ^^ <Y>매너 있는 플레이</> 부탁드리고, <M>지나친 훼접</>은 삼가주세요~</>"], $year, $month);
}
}
}