fix: match scenario 2601 monthly seed progression

This commit is contained in:
2026-08-03 18:56:23 +00:00
parent 2f17584075
commit 58b9a230a7
92 changed files with 3696 additions and 587 deletions
@@ -460,6 +460,20 @@ export class InMemoryReservedTurnStore {
this.dirtyGeneralIds.add(generalId);
}
setGeneralTurn(generalId: number, turnIdx: number, entry: ReservedTurnEntry): void {
if (turnIdx < 0 || turnIdx >= this.maxGeneralTurns) {
return;
}
const turns = this.getGeneralTurns(generalId).slice();
turns[turnIdx] = {
action: normalizeAction(entry.action),
args: normalizeArgs(entry.args),
};
this.generalTurns.set(generalId, turns);
this.pendingGeneralInitializationIds.delete(generalId);
this.dirtyGeneralIds.add(generalId);
}
ensureNationTurns(nationId: number, officerLevel: number): void {
const key = buildNationKey(nationId, officerLevel);
this.getNationTurns(nationId, officerLevel);