From 8deff47638c92c5982c52c77b8d6b2067a0e939c Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Tue, 20 Jul 2021 19:03:14 +0200 Subject: [PATCH] Adds dice number indicator --- eid_api.lua | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index 8485b56d..868ab2e9 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -448,7 +448,7 @@ function EID:getObjectName(Type, Variant, SubType) elseif tableName == "sacrifice" then return EID:getDescriptionEntry("sacrificeHeader") elseif tableName == "dice" then - return EID:getDescriptionEntry("diceHeader") + return EID:getDescriptionEntry("diceHeader").." ("..SubType..")" elseif tableName == "custom" then return name or Type.."."..Variant.."."..SubType end @@ -632,14 +632,7 @@ function EID:getColor(str, baseKColor) local color = baseKColor local isColorMarkup = false if str ~= nil then - local strTrimmed = - string.gsub( - str, - "{{(.-)}}", - function(a) - return a - end - ) + local strTrimmed = string.gsub(str,"{{(.-)}}",function(a) return a end, 1) if #strTrimmed <= #str then if type(EID.InlineColors[strTrimmed]) == "function" then color = EID.InlineColors[strTrimmed](color)