feat: 로그 메시지 개선 및 커맨드 로그 체크리스트 추가

This commit is contained in:
2026-02-04 18:58:57 +00:00
parent 34cfb6eeb6
commit 113e269a2c
6 changed files with 108 additions and 9 deletions
@@ -96,13 +96,13 @@ export class ActionDefinition<
const cityName = context.city?.name ?? '??';
context.addLog(`거병에 성공하였습니다.`, {
category: LogCategory.USER,
format: LogFormat.PLAIN,
});
context.addLog(`${general.name}${josaYi} ${cityName}에 거병하였습니다.`, {
category: LogCategory.ACTION,
format: LogFormat.MONTH,
});
context.addLog(`${general.name}${josaYi} ${cityName}에 거병하였습니다.`, {
category: LogCategory.USER,
format: LogFormat.PLAIN,
});
context.addLog(`【거병】${general.name}${josaYi} 세력을 결성하였습니다.`, {
category: LogCategory.HISTORY,
format: LogFormat.PLAIN,
@@ -70,7 +70,7 @@ export class ActionDefinition<
general.atmos = nextAtmos;
general.gold = Math.max(0, general.gold - costGold);
context.addLog(`${ACTION_NAME}사기가 ${applied} 증가했습니다.`);
context.addLog(`사기<C>${applied}</> 상승했습니다.`);
tryApplyUniqueLottery(context, { acquireType: '아이템', reason: ACTION_NAME });
return { effects: [] };
@@ -45,14 +45,13 @@ export class ActionDefinition<
const general = context.general;
const delta = this.env.injuryDelta ?? DEFAULT_INJURY_DELTA;
const nextInjury = Math.max(0, general.injury - delta);
const applied = general.injury - nextInjury;
const costGold = this.env.costGold ?? 0;
// 직접 수정 (Immer Draft)
general.injury = nextInjury;
general.gold = Math.max(0, general.gold - costGold);
context.addLog(`${ACTION_NAME}으로 부상이 ${applied} 회복되었습니다.`);
context.addLog(`건강 회복을 위해 요양합니다.`);
return { effects: [] };
}
@@ -64,7 +64,7 @@ export class ActionDefinition<
general.train = nextTrain;
general.gold = Math.max(0, general.gold - costGold);
context.addLog(`${ACTION_NAME}을 통해 훈련${applied} 증가했습니다.`);
context.addLog(`훈련<C>${applied}</> 상승했습니다.`);
tryApplyUniqueLottery(context, { acquireType: '아이템', reason: ACTION_NAME });
return { effects: [] };
@@ -143,7 +143,7 @@ export class ActionDefinition<
}
),
// General Action Log
createLogEffect(`<span style='color:${color};'><b>국기</b></span>를 변경하였습니다.`, {
createLogEffect(`<span style='color:${color};'><b>국기</b></span>를 변경하였습니다`, {
scope: LogScope.GENERAL,
category: LogCategory.ACTION,
format: LogFormat.MONTH,