fix: resolve enchanting spec vs code discrepancies (issue #324)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m19s

- D2: Move spell_iceShard to basic-spells.ts at cost 75 (canonical), remove duplicate from frost-spells.ts
- D7: disenchantEquipment now adds 'Ready for Enchantment' tag and resets rarity to 'common'
- D8: disenchantEquipment now credits recovered mana to raw mana pool
- D14: Wire enchantPower stat from discipline effects into efficiencyBonus via new getEnchantingEfficiencyBonus() helper
- D3: Fix spec file reference from crafting-attunements.ts to data/attunements.ts
- D1/D6: Add missing metalSpellFocus to spec capacity table
This commit is contained in:
2026-06-09 09:33:30 +02:00
parent b0e553c290
commit e45c206321
10 changed files with 46 additions and 16 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Circular Dependencies
Generated: 2026-06-08T21:50:12.078Z
Generated: 2026-06-08T23:26:23.477Z
Found: 2 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
+2 -1
View File
@@ -1,6 +1,6 @@
{
"_meta": {
"generated": "2026-06-08T21:50:10.004Z",
"generated": "2026-06-08T23:26:19.136Z",
"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."
},
@@ -720,6 +720,7 @@
"stores/golem-combat-actions.ts": [
"constants.ts",
"data/golems/index.ts",
"data/golems/types.ts",
"data/golems/utils.ts",
"stores/golem-combat-helpers.ts",
"types.ts"
@@ -281,6 +281,7 @@ Same formula as Prepare stage (§4.5).
| **Catalyst** | basicCatalyst | 40 |
| | fireCatalyst | 55 |
| | voidCatalyst | 75 |
| | metalSpellFocus | 50 |
| **Sword** | ironBlade | 30 |
| | steelBlade | 40 |
| | crystalBlade | 55 |
@@ -643,7 +644,7 @@ capacity). It affects:
| `src/lib/game/crafting-prep.ts` | Prepare stage logic, disenchant recovery |
| `src/lib/game/crafting-apply.ts` | Apply stage logic, free enchant, Pure Essence |
| `src/lib/game/crafting-utils.ts` | Shared utilities, capacity cost, cancellation refund |
| `src/lib/game/crafting-attunements.ts` | Attunement-crafting integration, enchanting XP |
| `src/lib/game/data/attunements.ts` | Attunement-crafting integration, enchanting XP |
| `src/lib/game/data/enchantments/` | All enchantment effect definitions (7 categories) |
| `src/lib/game/crafting-actions/design-actions.ts` | Design stage store actions |
| `src/lib/game/crafting-actions/preparation-actions.ts` | Prepare stage store actions |