game: 부대탑승후 이동 이벤트시 로그 기록
This commit is contained in:
@@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
namespace sammo\StaticEvent;
|
namespace sammo\StaticEvent;
|
||||||
|
|
||||||
|
use sammo\ActionLogger;
|
||||||
|
use sammo\CityConst;
|
||||||
use sammo\DB;
|
use sammo\DB;
|
||||||
use sammo\Enums\GeneralLiteQueryMode;
|
use sammo\Enums\GeneralLiteQueryMode;
|
||||||
use sammo\General;
|
use sammo\General;
|
||||||
use sammo\GeneralLite;
|
use sammo\GeneralLite;
|
||||||
|
use sammo\JosaUtil;
|
||||||
|
|
||||||
class event_부대탑승즉시이동 extends \sammo\BaseStaticEvent
|
class event_부대탑승즉시이동 extends \sammo\BaseStaticEvent
|
||||||
{
|
{
|
||||||
@@ -37,7 +40,10 @@ class event_부대탑승즉시이동 extends \sammo\BaseStaticEvent
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$cityName = CityConst::byID($destGeneral->getCityID())->name;
|
||||||
$general->setVar('city', $destGeneral->getCityID());
|
$general->setVar('city', $destGeneral->getCityID());
|
||||||
|
$josaRo = JosaUtil::pick($cityName, '로');
|
||||||
|
$general->getLogger()->pushGeneralActionLog("부대 주둔지인 <G><b>{$cityName}</b></>{$josaRo}로 즉시 이동합니다.", ActionLogger::PLAIN);
|
||||||
$general->applyDB(DB::db());
|
$general->applyDB(DB::db());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user