Use gsub for Void stat increase {1}
This commit is contained in:
1 parent
f18877f3c6
commit
82c723b035
1 file changed
+5
-1
+5
-1
@@ -125,7 +125,11 @@ local function VoidCallback(descObj, isRune)
|
|||||||
EID:appendToDescription(descObj, "#" .. prefix .. voidIntro .. "#")
|
EID:appendToDescription(descObj, "#" .. prefix .. voidIntro .. "#")
|
||||||
for i,v in ipairs(increases) do
|
for i,v in ipairs(increases) do
|
||||||
if v > 0 then
|
if v > 0 then
|
||||||
EID:appendToDescription(descObj, "↑ " .. voidStatIcons[i] .. " +" .. string.format("%.4g",v*voidStatUps[i]) .. " " .. voidNames[i] .. "#")
|
local statIncreaseStr = "↑ " .. voidStatIcons[i] .. " " .. voidNames[i] .. "#"
|
||||||
|
local replaceCount = 0
|
||||||
|
statIncreaseStr, replaceCount = string.gsub(statIncreaseStr, "{1}", "+" .. string.format("%.4g",v*voidStatUps[i]))
|
||||||
|
if replaceCount == 0 then statIncreaseStr = "↑ " .. voidStatIcons[i] .. " +" .. string.format("%.4g",v*voidStatUps[i]) .. " " .. voidNames[i] .. "#" end
|
||||||
|
EID:appendToDescription(descObj, statIncreaseStr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- Print unique synergies with Void and Active Items
|
-- Print unique synergies with Void and Active Items
|
||||||
|
|||||||
Reference in new issue
Block a user