fix: restore legacy gameplay messages and record details
This commit is contained in:
@@ -33,6 +33,7 @@ const safeSpanClasses = new Set([
|
||||
'war_type_attack',
|
||||
'war_type_defense',
|
||||
'war_type_siege',
|
||||
'hidden_but_copyable',
|
||||
]);
|
||||
|
||||
const escapeText = (value: string): string =>
|
||||
|
||||
@@ -39,6 +39,9 @@ describe('formatLegacyLogHtml', () => {
|
||||
expect(formatLegacyLogHtml('<span class="unknown">미허용</span>')).toBe(
|
||||
'<span class="unknown">미허용</span>'
|
||||
);
|
||||
expect(formatLegacyLogHtml('<span class="hidden_but_copyable">(전투시드: fixed-seed)</span>')).toBe(
|
||||
'<span class="hidden_but_copyable">(전투시드: fixed-seed)</span>'
|
||||
);
|
||||
});
|
||||
|
||||
it('keeps the fixed hex color form emitted by flag-change logs but rejects other inline CSS', () => {
|
||||
|
||||
@@ -381,7 +381,7 @@ export const resolveWarBattle = <TriggerState extends GeneralTriggerState = Gene
|
||||
const attackerNationName = (attackerUnit.getNationVar('name') as string | null) ?? 'UNKNOWN';
|
||||
const attackerName = attackerUnit.getName();
|
||||
const cityName = cityUnit.getName();
|
||||
const seedText = input.seed ? `(전투시드: ${input.seed})` : '';
|
||||
const seedText = input.seed ? `<span class="hidden_but_copyable">(전투시드: ${input.seed})</span>` : '';
|
||||
|
||||
const josaRo = JosaUtil.pick(cityName, '로');
|
||||
const josaYi = JosaUtil.pick(attackerName, '이');
|
||||
|
||||
Reference in New Issue
Block a user