SkillsTab Modifications (Bugs 9,11,12,13)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m12s

This commit is contained in:
Refactoring Agent
2026-04-27 13:26:02 +02:00
parent 749321d2cb
commit eeb1e3c784
20 changed files with 828 additions and 237 deletions
+3 -3
View File
@@ -526,7 +526,7 @@ export function createCraftingSlice(
const instance = state.equipmentInstances[instanceId];
if (!instance || instance.enchantments.length === 0) return;
const disenchantLevel = state.skills.disenchanting || 0;
const disenchantLevel = 0; // disenchanting skill removed (Bug 13)
const recoveryRate = 0.1 + disenchantLevel * 0.2; // 10% base + 20% per level
let totalRecovered = 0;
@@ -828,8 +828,8 @@ export function processCraftingTick(
let totalRecovered = 0;
if (instance) {
// Calculate mana recovery from disenchanting
const disenchantLevel = (state.skills as Record<string, number>).disenchanting || 0;
// Calculate mana recovery - disenchanting skill removed (Bug 13)
const disenchantLevel = 0;
const recoveryRate = 0.1 + disenchantLevel * 0.2; // 10% base + 20% per level
for (const ench of instance.enchantments) {
totalRecovered += Math.floor(ench.actualCost * recoveryRate);