[priority: medium] "Steady Hand" prestige upgrade references non-existent durability mechanic #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
BUG: Prestige upgrade description mentions durability loss but durability doesn't exist
Bug Summary
The "Steady Hand" prestige upgrade claims "-15% durability loss" but the
EquipmentInstancetype has no durability mechanic.Evidence
src/lib/game/constants/prestige.ts, line 8steadyHand: { name: "Steady Hand", desc: "-15% durability loss", max: 5, cost: 1200 }src/lib/game/types/equipment.ts, lines 18-37EquipmentInstanceinterface has NOdurabilityormaxDurabilityfieldsdurability/maxDurabilityonly exists in the legacyEquipmentDefinterface (marked "Legacy EquipmentDef for backward compatibility")Fix Required
Update the description to either:
steadyHandactually does (if anything)Priority
MEDIUM - Misleading upgrade description; blocks informed player decisions
Starting work on the Steady Hand prestige upgrade bug. Investigating what the upgrade should actually do.
Fixed the Steady Hand prestige upgrade. The description referenced a non-existent durability mechanic. Updated it to provide a real effect:
Changes:
src/lib/game/constants/prestige.ts— Changed description from "-15% durability loss" to "+15% enchantment power"src/lib/game/effects.ts— UpdatedcomputeAllEffectsandgetUnifiedEffectsto accept optionalprestigeUpgradesparameter. Steady Hand level now scalesenchantmentPowerMultiplierby1 + level * 0.15src/lib/game/stores/gameStore.ts— PasssteadyHandlevel from prestige upgrades tocomputeEquipmentEffectsasenchantmentPowerMultipliersrc/lib/game/stores/gameHooks.ts— PassprestigeUpgradesthrough togetUnifiedEffectsinuseUnifiedEffects,useManaStats, anduseCombatStatsThe upgrade now actually does something: each level increases enchantment power by 15%, scaling all equipped enchantment bonuses. All 896 tests pass.
Commit:
9e49aa1