From ae8bb6f7eeb0371eb167a7d38f50f2c901bb6a76 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Fri, 23 Oct 2009 17:21:08 -0500 Subject: [PATCH] Changed weight normalization to use the absolute value of the weights given --- WeightsWatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5