mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 04:50:49 +00:00
autovendor: rename repair function
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
pfUI:RegisterModule("autovendor", function ()
|
pfUI:RegisterModule("autovendor", function ()
|
||||||
local scanlist = {}
|
local scanlist = {}
|
||||||
|
|
||||||
local function RepairAllItems()
|
local function RepairItems()
|
||||||
local cost, possible = GetRepairAllCost()
|
local cost, possible = GetRepairAllCost()
|
||||||
if cost > 0 and possible then
|
if cost > 0 and possible then
|
||||||
DEFAULT_CHAT_FRAME:AddMessage("Your items have been repaired for " .. CreateGoldString(cost))
|
DEFAULT_CHAT_FRAME:AddMessage("Your items have been repaired for " .. CreateGoldString(cost))
|
||||||
@@ -78,7 +78,7 @@ pfUI:RegisterModule("autovendor", function ()
|
|||||||
|
|
||||||
if event == "MERCHANT_SHOW" then
|
if event == "MERCHANT_SHOW" then
|
||||||
if C["global"]["autorepair"] == "1" then
|
if C["global"]["autorepair"] == "1" then
|
||||||
RepairAllItems()
|
RepairItems()
|
||||||
end
|
end
|
||||||
|
|
||||||
if C["global"]["autosell"] == "1" then
|
if C["global"]["autosell"] == "1" then
|
||||||
|
|||||||
Reference in New Issue
Block a user