fix(turn): preserve zero-balance seizure flow

This commit is contained in:
2026-07-26 06:16:46 +00:00
parent 8617e3fdb9
commit efda1c472c
2 changed files with 79 additions and 13 deletions
@@ -141,20 +141,8 @@ export class ActionDefinition<
const actualAmount = clamp(args.amount, 0, destGeneral[resKey] ?? 0);
if (actualAmount <= 0) {
return {
effects: [
createLogEffect(`${destGeneral.name}에게서 몰수할 ${resName}이 없습니다.`, {
scope: LogScope.GENERAL,
category: LogCategory.ACTION,
format: LogFormat.MONTH,
}),
],
};
}
const amountText = actualAmount.toLocaleString();
const josaUl = JosaUtil.pick(amountText, '을');
const josaUl = actualAmount === 0 ? '를' : JosaUtil.pick(amountText, '을');
const destGeneralName = destGeneral.name;
const effects: Array<GeneralActionEffect<TriggerState>> = [