From 1ccf87c61a3771d28ddbd391e1ae250ff3f5a708 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:39:01 -0500 Subject: [PATCH] Drop CreateGoldString's fallback for clients without coin icons ClassicAPI always provides GetCoinTextureString, so the presence check and the hand-built "g/s/c" string after it never ran. --- api/api.lua | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/api/api.lua b/api/api.lua index 91b01f0b..1c308632 100644 --- a/api/api.lua +++ b/api/api.lua @@ -722,20 +722,7 @@ end function pfUI.api.CreateGoldString(money) if type(money) ~= "number" then return "-" end - if _G.GetCoinTextureString then - return "|cffffffff" .. _G.GetCoinTextureString(money) .. "|r" - end - - local gold = floor(money/ 100 / 100) - local silver = floor(mod((money/100),100)) - local copper = floor(mod(money,100)) - - local string = "" - if gold > 0 then string = string .. "|cffffffff" .. gold .. "|cffffd700g" end - if silver > 0 or gold > 0 then string = string .. "|cffffffff " .. silver .. "|cffc7c7cfs" end - string = string .. "|cffffffff " .. copper .. "|cffeda55fc" - - return string + return "|cffffffff" .. _G.GetCoinTextureString(money) .. "|r" end -- [ Enable Movable ]