feat: 커맨드 로그 메시지 개선 및 불필요한 항목 제거

This commit is contained in:
2026-02-04 19:07:14 +00:00
parent 702f385612
commit db1082ecb1
6 changed files with 19 additions and 26 deletions
+1 -13
View File
@@ -33,9 +33,6 @@ TS only: 인재 <Y>${}</>${} 발견했습니다.
- [ ] General/che_임관
PHP only: <D>${}</>에 임관했습니다.
TS only: 임관을 신청했습니다. (국가 ${})
- [ ] General/che_전투특기초기화
PHP only: 새로운 ${}를 가질 준비가 되었습니다.
TS only: 새로운 전투 특기를 가질 준비가 되었습니다.
- [ ] General/che_정착장려
PHP only: ${}${} <span class='ev_failed'>실패</span>하여 주민이 <C>${}</>명 증가했습니다. | ${}${} <S>성공</>하여 주민이 <C>${}</>명 증가했습니다. | ${}${} 하여 주민이 <C>${}</>명 증가했습니다.
TS only: 인구가 ${} 증가했습니다.
@@ -53,9 +50,6 @@ TS only: 경로에 도달할 방법이 없습니다. | <G>${}</>${} 가는 도
- [ ] Nation/che_국호변경
PHP only: 이미 같은 국호를 가진 곳이 있습니다. ${} 실패 | 국호를 <D>${}</>${} 변경합니다.
TS only: 국호를 <D>${}</>로 변경하였습니다.
- [ ] Nation/che_급습
PHP only: ${} 발동!
TS only: 급습 발동!
- [ ] Nation/che_몰수
PHP only: <Y>{${}->getName()}</>에게서 ${} <C>${}</>${} 몰수했습니다.
TS only: ${}에게서 몰수할 ${}이 없습니다. | <Y>${}</>에게서 ${} <C>${}</>${} 몰수했습니다.
@@ -69,17 +63,11 @@ TS only: 불가침 제의을 준비했습니다. (국가 ${})
- [ ] Nation/che_불가침파기제의
PHP only: <D>${}</>${} 불가침 파기 제의 서신을 보냈습니다.
TS only: 불가침 파기 제의을 준비했습니다. (국가 ${})
- [ ] Nation/che_의병모집
PHP only: ${} 발동!
TS only: 의병모집 발동!
- [ ] Nation/che_이호경식
PHP only: ${} 발동!
TS only: 이호경식 발동!
- [ ] Nation/che_포상
PHP only: <Y>{${}->getName()}</>에게 ${} <C>${}</>${} 수여했습니다.
TS only: <Y>${}</>에게 ${} ${}${} 수여했습니다.
- [ ] Nation/che_피장파장
PHP only: <G>{${}->getName()}</> 전략의 ${} 발동!
TS only: <G>${}</> 전략의 피장파장 발동!
TS only: <G>${}</> 전략의 ${} 발동!
- [ ] Nation/cr_인구이동
TS only: 이동할 인구가 부족합니다.
@@ -54,7 +54,8 @@ export class ActionDefinition<
const general = context.general;
general.role.specialWar = null;
setMetaNumber(general.meta, 'specAge2', general.age + 1);
context.addLog('새로운 전투 특기를 가질 준비가 되었습니다.');
const specialName = ACTION_NAME.replace(' 초기화', '');
context.addLog(`새로운 ${specialName}를 가질 준비가 되었습니다.`);
tryApplyUniqueLottery(context, { acquireType: '아이템', reason: ACTION_NAME });
return { effects: [] };
}
@@ -80,14 +80,15 @@ export class ActionResolver<
const generalJosa = JosaUtil.pick(generalName, '이');
const nationName = nation?.name ?? '아국';
const destNationName = context.destNation.name;
const actionJosa = JosaUtil.pick(ACTION_NAME, '을');
const actionName = ACTION_NAME;
const actionJosa = JosaUtil.pick(actionName, '을');
const broadcastMessage = `<Y>${generalName}</>${generalJosa} <G><b>${destNationName}</b></>에 <M>${ACTION_NAME}</>${actionJosa} 발동하였습니다.`;
general.experience += EXP_DED_GAIN;
general.dedication += EXP_DED_GAIN;
context.addLog(`${ACTION_NAME} 발동!`, { format: LogFormat.MONTH });
context.addLog(`<D><b>${destNationName}</b></>에 <M>${ACTION_NAME}</>${actionJosa} 발동`, {
context.addLog(`${actionName} 발동!`, { format: LogFormat.MONTH });
context.addLog(`<D><b>${destNationName}</b></>에 <M>${actionName}</>${actionJosa} 발동`, {
category: LogCategory.HISTORY,
format: LogFormat.YEAR_MONTH,
});
@@ -236,8 +236,9 @@ export class ActionResolver<
general.experience += expGain;
general.dedication += dedGain;
context.addLog(`${ACTION_NAME} 발동!`);
context.addLog(`${ACTION_NAME} 발동`, {
const actionName = ACTION_NAME;
context.addLog(`${actionName} 발동!`);
context.addLog(`${actionName} 발동`, {
category: LogCategory.HISTORY,
format: LogFormat.YEAR_MONTH,
});
@@ -245,8 +246,8 @@ export class ActionResolver<
if (nation) {
const generalName = general.name;
const generalJosa = JosaUtil.pick(generalName, '이');
const actionJosa = JosaUtil.pick(ACTION_NAME, '을');
context.addLog(`<Y>${generalName}</>${generalJosa} <M>${ACTION_NAME}</>${actionJosa} 발동했습니다.`, {
const actionJosa = JosaUtil.pick(actionName, '을');
context.addLog(`<Y>${generalName}</>${generalJosa} <M>${actionName}</>${actionJosa} 발동했습니다.`, {
scope: LogScope.NATION,
category: LogCategory.HISTORY,
nationId: nation.id,
@@ -85,14 +85,15 @@ export class ActionResolver<
const nationName = nation?.name ?? '아국';
const nationJosa = JosaUtil.pick(nationName, '이');
const destNationName = context.destNation.name;
const actionJosa = JosaUtil.pick(ACTION_NAME, '을');
const actionName = ACTION_NAME;
const actionJosa = JosaUtil.pick(actionName, '을');
const broadcastMessage = `<Y>${generalName}</>${generalJosa} <G><b>${destNationName}</b></>에 <M>${ACTION_NAME}</>${actionJosa} 발동하였습니다.`;
general.experience += EXP_DED_GAIN;
general.dedication += EXP_DED_GAIN;
context.addLog(`${ACTION_NAME} 발동!`, { format: LogFormat.MONTH });
context.addLog(`<D><b>${destNationName}</b></>에 <M>${ACTION_NAME}</>${actionJosa} 발동`, {
context.addLog(`${actionName} 발동!`, { format: LogFormat.MONTH });
context.addLog(`<D><b>${destNationName}</b></>에 <M>${actionName}</>${actionJosa} 발동`, {
category: LogCategory.HISTORY,
format: LogFormat.YEAR_MONTH,
});
@@ -105,12 +105,13 @@ export class ActionResolver<
const nationName = nation?.name ?? '아국';
const destNationName = destNation.name;
const targetCommandName = STRATEGIC_COMMANDS[args.commandType] ?? args.commandType;
const actionJosa = JosaUtil.pick(ACTION_NAME, '을');
const actionName = ACTION_NAME;
const actionJosa = JosaUtil.pick(actionName, '을');
general.experience += EXP_DED_GAIN;
general.dedication += EXP_DED_GAIN;
context.addLog(`<G><b>${targetCommandName}</b></> 전략의 ${ACTION_NAME} 발동!`, {
context.addLog(`<G><b>${targetCommandName}</b></> 전략의 ${actionName} 발동!`, {
format: LogFormat.MONTH,
});
context.addLog(