From 3feb5c44081ff5d59722d79d517e876119e15654 Mon Sep 17 00:00:00 2001 From: HonorGoG Date: Sun, 6 Jun 2021 16:56:31 -0700 Subject: [PATCH] - TitanClassicRepair : Another hidden text change. --- TitanClassicRepair/TitanClassicRepair.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/TitanClassicRepair/TitanClassicRepair.lua b/TitanClassicRepair/TitanClassicRepair.lua index 062e006..8bebc38 100644 --- a/TitanClassicRepair/TitanClassicRepair.lua +++ b/TitanClassicRepair/TitanClassicRepair.lua @@ -943,19 +943,18 @@ function TitanPanelRepairButton_GetButtonText(id) end if (not TPR.MerchantisOpen or (TPR.MerchantisOpen and not canRepair)) then - if TitanGetVar(TITAN_REPAIR_ID, "DiscountHonored") then + if TitanGetVar(TITAN_REPAIR_ID, "DiscountFriendly") then + sum = sum * 0.95; + discountlabel = FACTION_STANDING_LABEL5; + elseif TitanGetVar(TITAN_REPAIR_ID, "DiscountHonored") then sum = sum * 0.90; discountlabel = FACTION_STANDING_LABEL6; - elseif TitanGetVar(TITAN_REPAIR_ID, "DiscountPVP") then - sum = sum * 0.80; - local start=string.find("(",L["REPAIR_LOCALE"]["pvp"]); - local stop=string.find(")",L["REPAIR_LOCALE"]["pvp"],start+1); - discountlabel = string.sub(L["REPAIR_LOCALE"]["pvp"], start+1, stop-1); - elseif TitanGetVar(TITAN_REPAIR_ID, "DiscountCombined") then + elseif TitanGetVar(TITAN_REPAIR_ID, "DiscountRevered") then + sum = sum * 0.85; + discountlabel = FACTION_STANDING_LABEL7; + elseif TitanGetVar(TITAN_REPAIR_ID, "DiscountExalted") then sum = sum * 0.80; - local start=string.find("(",L["REPAIR_LOCALE"]["combined"]); - local stop=string.find(")",L["REPAIR_LOCALE"]["combined"],start+1); - discountlabel = string.sub(L["REPAIR_LOCALE"]["combined"], start+1, stop-1); + discountlabel = FACTION_STANDING_LABEL8; end -- if merchant end -- if discounts -- 1.7.9.5