Adds dice number indicator
This commit is contained in:
1 parent
9c9c5fded9
commit
8deff47638
1 file changed
+2
-9
+2
-9
@@ -448,7 +448,7 @@ function EID:getObjectName(Type, Variant, SubType)
|
|||||||
elseif tableName == "sacrifice" then
|
elseif tableName == "sacrifice" then
|
||||||
return EID:getDescriptionEntry("sacrificeHeader")
|
return EID:getDescriptionEntry("sacrificeHeader")
|
||||||
elseif tableName == "dice" then
|
elseif tableName == "dice" then
|
||||||
return EID:getDescriptionEntry("diceHeader")
|
return EID:getDescriptionEntry("diceHeader").." ("..SubType..")"
|
||||||
elseif tableName == "custom" then
|
elseif tableName == "custom" then
|
||||||
return name or Type.."."..Variant.."."..SubType
|
return name or Type.."."..Variant.."."..SubType
|
||||||
end
|
end
|
||||||
@@ -632,14 +632,7 @@ function EID:getColor(str, baseKColor)
|
|||||||
local color = baseKColor
|
local color = baseKColor
|
||||||
local isColorMarkup = false
|
local isColorMarkup = false
|
||||||
if str ~= nil then
|
if str ~= nil then
|
||||||
local strTrimmed =
|
local strTrimmed = string.gsub(str,"{{(.-)}}",function(a) return a end, 1)
|
||||||
string.gsub(
|
|
||||||
str,
|
|
||||||
"{{(.-)}}",
|
|
||||||
function(a)
|
|
||||||
return a
|
|
||||||
end
|
|
||||||
)
|
|
||||||
if #strTrimmed <= #str then
|
if #strTrimmed <= #str then
|
||||||
if type(EID.InlineColors[strTrimmed]) == "function" then
|
if type(EID.InlineColors[strTrimmed]) == "function" then
|
||||||
color = EID.InlineColors[strTrimmed](color)
|
color = EID.InlineColors[strTrimmed](color)
|
||||||
|
|||||||
Reference in new issue
Block a user