SkillsTab Modifications (Bugs 9,11,12,13)
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m12s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m12s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user