diff --git a/core.lua b/core.lua
index ac1cacb..f5aa5cc 100644
--- a/core.lua
+++ b/core.lua
@@ -30,6 +30,7 @@ if not BG_GlobalDB or BG_GlobalDB == {} then
tooltipMaxHeight = 220,
tooltipNumItems = 10,
moneyLostByDeleting = 0,
+ neverRepairGuildBank = false,
}
end
@@ -446,7 +447,7 @@ function BrokerGarbage:AutoSell()
BrokerGarbage:Debug("locked")
locked = true
end
- sellValue = sellValue + (itemTable.value * itemTable.count)
+ sellValue = sellValue + itemTable.value
UseContainerItem(itemTable.bag, itemTable.slot)
i = i+1
end
@@ -459,7 +460,7 @@ function BrokerGarbage:AutoRepair()
if BG_GlobalDB.autoRepairAtVendor and CanMerchantRepair() then
cost = GetRepairAllCost()
- if cost > 0 and GetGuildBankWithdrawMoney() >= cost then
+ if cost > 0 and GetGuildBankWithdrawMoney() >= cost and not BG_GlobalDB.neverRepairGuildBank then
RepairAllItems(CanGuildBankRepair())
elseif cost > 0 then
RepairAllItems(0)
diff --git a/deDE.lua b/deDE.lua
index 1e08d53..52eb218 100644
--- a/deDE.lua
+++ b/deDE.lua
@@ -33,6 +33,9 @@ BrokerGarbage.locale = {
autoRepairTitle = "Automatisch Reparieren",
autoRepairText = "Wenn ausgew\195\164hlt, wird deine Ausr\195\188stung automatisch repariert wenn m\195\182glich.",
+ autoRepairGuildTitle = "Reparatur selbst zahlen",
+ autoRepairGuildText = "Wenn ausgew\195\164hlt wird Broker_Garbage nicht auf Gildenkosten reparieren.",
+
dropQualityTitle = "Item Qualit\195\164t",
dropQualityText = "W\195\164hle, bis zu welcher Qualit\195\164t Items zum L\195\182schen vorgeschlagen werden. Standard: Schlecht (0)",
diff --git a/enUS.lua b/enUS.lua
index 4b74811..b0ff76e 100644
--- a/enUS.lua
+++ b/enUS.lua
@@ -27,6 +27,9 @@ BrokerGarbage.locale = {
autoRepairTitle = "Auto Repair",
autoRepairText = "Toggles whether to automatically repair your gear when at a vendor.",
+ autoRepairGuildTitle = "No Guild Repair",
+ autoRepairGuildText = "If selected, Broker_Garbage will never try to repair using the guild bank's money",
+
dropQualityTitle = "Drop Quality",
dropQualityText = "Select up to which treshold items may be listed as deletable. Default: Poor (0)",
diff --git a/options.lua b/options.lua
index 5ccc95d..6925b21 100644
--- a/options.lua
+++ b/options.lua
@@ -35,8 +35,18 @@ BrokerGarbage.options:SetScript("OnShow", function(self)
checksound(self)
BG_GlobalDB.autoRepairAtVendor = not BG_GlobalDB.autoRepairAtVendor
end)
+
+ local guildrepair = LibStub("tekKonfig-Checkbox").new(self, nil, BrokerGarbage.locale.autoRepairGuildTitle, "TOPLEFT", autorepair, "BOTTOMLEFT", 0, 0)
+ guildrepair.tiptext = BrokerGarbage.locale.autoRepairGuildText
+ guildrepair:SetChecked(BG_GlobalDB.neverRepairGuildBank)
+ local checksound = guildrepair:GetScript("OnClick")
+ guildrepair:SetScript("OnClick", function(self)
+ checksound(self)
+ BG_GlobalDB.neverRepairGuildBank = not BG_GlobalDB.neverRepairGuildBank
+ end)
+
- local quality = LibStub("tekKonfig-Slider").new(self, BrokerGarbage.locale.dropQualityTitle, 0, 6, "TOPLEFT", autosell, "BOTTOMLEFT", 2, -10)
+ local quality = LibStub("tekKonfig-Slider").new(self, BrokerGarbage.locale.dropQualityTitle, 0, 6, "TOPLEFT", autosell, "BOTTOMLEFT", 2, -25)
quality.tiptext = BrokerGarbage.locale.dropQualityText
quality:SetWidth(200)
quality:SetValueStep(1);