Quantcast

- TitanRepair : Updated color code parsing. Thank you to Centias for finding this for us.

HonorGoG [04-27-25 - 04:27]
- TitanRepair : Updated color code parsing.  Thank you to Centias for finding this for us.
Filename
TitanRepair/TitanRepair.lua
diff --git a/TitanRepair/TitanRepair.lua b/TitanRepair/TitanRepair.lua
index bb69d62..1b30aef 100644
--- a/TitanRepair/TitanRepair.lua
+++ b/TitanRepair/TitanRepair.lua
@@ -23,7 +23,7 @@ local TR_Timer = {}
 local TR_Timer_active = false

 local parse_item =
-	"|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?"
+	"|?cnIQ?(%x*):|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?"

 ---@diagnostic disable-next-line: deprecated
 local GetItem = C_Item.GetItemInfo or GetItemInfo -- For Classic versions
@@ -274,7 +274,7 @@ print
 			debug_msg(dmsg)
 		end

-		-- Walk thru slots 'backward' to give weapons 'priority' if most damagaged
+		-- Walk thru slots 'backward' to give weapons 'priority' if most damaged
 		for slotID = TR.scan_start, TR.scan_end, -1 do  -- thru slots
 			local slotName = slots[slotID].name
 			local scan_slots = tostring(slotName)..":"..tostring(GetInventorySlotInfo(slotName))