Quantcast

- TitanRepair : Add to chat message whether repair cost came from you or guild.

urnati [01-10-23 - 15:57]
- TitanRepair : Add to chat message whether repair cost came from you or guild.
Filename
TitanRepair/TitanRepair.lua
diff --git a/TitanRepair/TitanRepair.lua b/TitanRepair/TitanRepair.lua
index 672cd02..88babba 100644
--- a/TitanRepair/TitanRepair.lua
+++ b/TitanRepair/TitanRepair.lua
@@ -432,7 +432,9 @@ local function TitanRepair_RepairItems()
 			if withdrawLimit >= cost then
 				RepairAllItems(true)
 				if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then
-					DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_REPORT_COST_CHAT"]..GetTextGSC(cost).."|r.")
+					DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"
+						..L["TITAN_REPAIR_REPORT_COST_CHAT"]..GetTextGSC(cost).."|r"
+						.." "..FROM.." "..GUILD..".")
 				end
 				-- disable repair all icon in merchant
 				SetDesaturation(MerchantRepairAllIcon, 1);
@@ -456,7 +458,9 @@ local function TitanRepair_RepairItems()
 			RepairAllItems()
 			-- report repair cost to chat (optional)
 			if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then
-				DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"..L["TITAN_REPAIR_REPORT_COST_CHAT"]..GetTextGSC(cost))
+				DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r"
+					..L["TITAN_REPAIR_REPORT_COST_CHAT"]..GetTextGSC(cost)
+					.." "..FROM.." "..YOU..".")
 			end
 			-- disable repair all icon in merchant
 			SetDesaturation(MerchantRepairAllIcon, 1);