fix: discipline reset on mana depletion and re-activation after stop
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m35s

- #143: processTick now removes drained disciplines from activeIds and calls onStopPracticing so currentAction resets to 'meditate'
- #144: Removed paused guard from canProceedDiscipline so stopped disciplines can be re-activated
- Updated test to match new expected behavior for paused disciplines
This commit is contained in:
2026-05-27 11:13:08 +02:00
parent 64b472572b
commit 7962a4fdaa
5 changed files with 18 additions and 5 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-05-27T08:45:43.143Z",
"generated": "2026-05-27T09:06:27.471Z",
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
},
@@ -151,6 +151,10 @@
"types.ts",
"utils/result.ts"
],
"crafting-fabricator.ts": [
"data/fabricator-recipes.ts",
"types.ts"
],
"crafting-loot.ts": [
"data/crafting-recipes.ts",
"types.ts"
@@ -464,6 +468,7 @@
"crafting-actions/preparation-actions.ts",
"crafting-design.ts",
"crafting-equipment.ts",
"crafting-fabricator.ts",
"crafting-utils.ts",
"stores/combatStore.ts",
"stores/crafting-initial-state.ts",