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
@@ -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(