선양 코드 수정

This commit is contained in:
2020-05-01 15:27:42 +09:00
parent 9fd1f620d3
commit ac6b2ef4b4
+7 -3
View File
@@ -1670,12 +1670,16 @@ function nextRuler(General $general) {
'officer_level'=>12, 'officer_level'=>12,
'officer_city'=>0, 'officer_city'=>0,
], 'no=%i', $nextRulerID); ], 'no=%i', $nextRulerID);
if($db->affectedRows()){
throw new \RuntimeException('선양되지 않음');
}
$josaYi = JosaUtil::pick($nextRulerName, '이'); $josaYi = JosaUtil::pick($nextRulerName, '이');
$logger = $general->getLogger(); $nextRulerLogger = new ActionLogger($nextRulerID, $nationID, $year, $month);
$logger->pushGlobalHistoryLog("<C><b>【유지】</b></><Y>{$nextRulerName}</>{$josaYi} <D><b>{$nationName}</b></>의 유지를 이어 받았습니다"); $nextRulerLogger->pushGlobalHistoryLog("<C><b>【유지】</b></><Y>{$nextRulerName}</>{$josaYi} <D><b>{$nationName}</b></>의 유지를 이어 받았습니다");
$logger->pushGlobalHistoryLog("<C><b>【유지】</b></><Y>{$nextRulerName}</>{$josaYi} <D><b>{$nationName}</b></>의 유지를 이어 받음."); $nextRulerLogger->pushGeneralHistoryLog("<C><b>【유지】</b></><Y>{$nextRulerName}</>{$josaYi} <D><b>{$nationName}</b></>의 유지를 이어 받음.");
$nextRulerLogger->flush();
// 장수 삭제 및 부대처리는 checkTurn에서 // 장수 삭제 및 부대처리는 checkTurn에서
} }