From ff7fb27f35cd026cff257d0a1f709252a2e61dc0 Mon Sep 17 00:00:00 2001 From: Kirri777 Date: Mon, 18 Nov 2024 23:21:11 +0100 Subject: [PATCH] Change delta calc --- Core.lua | 2 +- Frame.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core.lua b/Core.lua index 51c89f2..20839d5 100644 --- a/Core.lua +++ b/Core.lua @@ -810,7 +810,7 @@ end function AddOn:IsItemUpgrade(ilvl, equipLoc) local function overOrWithinMin(eqilvl, eq, delta) - return eq <= eqilvl or eqilvl >= eq - delta + return eqilvl >= eq + delta end if ilvl ~= nil and equipLoc ~= nil and equipLoc ~= '' then diff --git a/Frame.lua b/Frame.lua index c467303..c61a01f 100644 --- a/Frame.lua +++ b/Frame.lua @@ -756,8 +756,8 @@ function AddOn.createSettingsPage() variableTbl = AddOn.db.config, tooltip = L["OPTIONS_SLIDER_DELTA_TOOLTIP"], default = 0, - minValue = 0, - maxValue = 500, + minValue = -500, + maxValue = 100, step = 1 } }