fix: make discipline perk numerical bonuses functional via structured BonusSpec
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m23s

- Add PerkBonus type and optional bonus field to DisciplinePerk
- Populate bonus data on 39 perks across base, elemental, elemental-regen,
  elemental-regen-advanced, and invoker discipline files
- Rewrite computeDisciplineEffects() to apply once/infinite/capped perk bonuses
  through known stat keys (maxManaBonus, baseDamageBonus, regen_*, elementCap_*)
- Add per-element cap bonus routing in effects.ts computeAllEffects()
- Remove dead enchantPower bonus (no consumer in effects pipeline)
This commit is contained in:
2026-05-26 18:00:29 +02:00
parent ae30c4770c
commit da4f9eccb3
10 changed files with 88 additions and 15 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
# Circular Dependencies
Generated: 2026-05-26T09:20:42.073Z
Generated: 2026-05-26T15:02:41.168Z
Found: 6 circular chain(s) — these MUST be fixed before modifying involved files.
1. Processed 135 files (1.7s) (2 warnings)
1. Processed 135 files (1.5s) (2 warnings)
2. 1) utils/floor-utils.ts > utils/room-utils.ts > utils/enemy-utils.ts
3. 2) utils/floor-utils.ts > utils/room-utils.ts
4. 3) stores/gameStore.ts > stores/gameActions.ts
+2 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-05-26T09:20:40.084Z",
"generated": "2026-05-26T15:02:39.505Z",
"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."
},
@@ -567,6 +567,7 @@
"stores/prestigeStore.ts": [
"constants.ts",
"data/guardian-encounters.ts",
"stores/manaStore.ts",
"utils/result.ts",
"utils/safe-persist.ts"
],