For some mod work I'm doing, I'm trying to figure out how to calculate the value of a weapon, including any enchantments. This is so I can properly value modded enchanted weapons!
With help from various sites I've been able to come close to the formula. So far I have:
Value of enchanted weapon = Value of base weapon + (((base enchantment cost) / 10 * (magnitude in pts) ^ 1.28 * (duration in sec) * (area in ft) * 0.45) + (number of charges) * 0.4)
For example: a Longsword of Storms (Daedric longsword with shock damage 20 pts and 1600 charges) is:
Value of weapon = Value of plain Daedric Longsword + (Shock Damage base cost of 7.8 ) / 10 * (20 pts) ^ 1.28 * (1sec duration) * (1ft) * 0.45) + (1600 charges) * 0.4
Value of weapon = 3100 + ((7.8 / 10 * 20 ^ 1.28 * 1 * 1 *0.45) + 1600) * 0.4
Value of weapon = 3746
So here's my problem. This formula almost gives the in-game value of 3754...it's off by a measly 8 gold. This formula's a little bit under for every enchanted weapon in fact. I don't think it's a rounding issue. Does anyone have any idea what I'm missing?