feat: 월간 외교 전이를 상태와 함께 감사 이력으로 저장
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { recordMonthlyAuditDiplomacy } from '../playAudit/diplomacy.js';
|
||||
import { asRecord, JosaUtil, LiteHashDRBG, RandUtil } from '@sammo-ts/common';
|
||||
import { DIPLOMACY_STATE, LogCategory, LogFormat, LogScope } from '@sammo-ts/logic';
|
||||
import { simpleSerialize } from '@sammo-ts/logic/war/utils.js';
|
||||
@@ -218,6 +219,8 @@ export const createMonthlyDiplomacyHandler = (options: {
|
||||
world.listDiplomacy().map((entry) => [`${entry.fromNationId}:${entry.toNationId}`, entry] as const)
|
||||
);
|
||||
|
||||
recordMonthlyAuditDiplomacy(world, before, afterByKey);
|
||||
|
||||
for (const entry of declarationStarts) {
|
||||
const nation1 = world.getNationById(entry.fromNationId);
|
||||
const nation2 = world.getNationById(entry.toNationId);
|
||||
|
||||
Reference in New Issue
Block a user