fix: clear unrelated active projects after ReCKoning resolution (closes #130)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 9s
Smoke Test / smoke (pull_request) Failing after 15s

This commit is contained in:
2026-04-14 22:10:57 -04:00
parent 729343e503
commit df0c3dd3e9
2 changed files with 29 additions and 0 deletions

View File

@@ -422,6 +422,11 @@ function buyProject(id) {
if (!G.completedProjects) G.completedProjects = [];
G.completedProjects.push(pDef.id);
G.activeProjects = G.activeProjects.filter(aid => aid !== pDef.id);
// Final ReCKoning choices should end with no unrelated active research left behind.
if (pDef.id === 'p_reckoning_147' || pDef.id === 'p_reckoning_148') {
G.activeProjects = [];
}
}
updateRates();