Skip to content

Commit

Permalink
Change delta calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirri777 committed Nov 18, 2024
1 parent 0de4056 commit ff7fb27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit ff7fb27

Please sign in to comment.