Adds dice number indicator

This commit is contained in:
Wofsauge committed 2021-07-20 19:03:14 +02:00
1 parent 9c9c5fded9
commit 8deff47638
1 file changed
+2 -9
+2 -9
View File
@@ -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)