feat(engine): track manualCompletionCounts on action complete

This commit is contained in:
ginnoir
2026-06-12 00:19:24 -05:00
parent f7ad9e7ecd
commit d625216018
6 changed files with 97 additions and 1 deletions
+2
View File
@@ -111,6 +111,8 @@ describe('loadGame()', () => {
currentStoryNodeId: '',
seenStoryNodeIds: [],
enabledLoopActionIds: {},
manualCompletionCounts: {},
automationQueue: [],
},
1000,
),
+2
View File
@@ -107,6 +107,8 @@ export async function loadGame(
currentStoryNodeId: save.state.currentStoryNodeId ?? '',
seenStoryNodeIds: [...(save.state.seenStoryNodeIds ?? [])],
enabledLoopActionIds: { ...(save.state.enabledLoopActionIds ?? {}) },
manualCompletionCounts: { ...(save.state.manualCompletionCounts ?? {}) },
automationQueue: [...(save.state.automationQueue ?? [])],
};
savedAt = save.savedAt;
} catch {