Changed weight normalization to use the absolute value of the weights given
Kevin Lyles [10-23-09 - 22:21]
Changed weight normalization to use the absolute value of the weights given
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index c6ad3b3..3aad984 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -234,7 +234,7 @@ function WeightsWatcher:calculateWeight(normalStats, socketBonusActive, socketBo
local total = 0
for _, value in pairs(weightsScale) do
- total = total + value
+ total = total + abs(value)
end
if total == 0 then
-- Avoids a divide by zero