Showing +0 mods in announce message
This commit is contained in:
parent
f8182ca30a
commit
5a0d0f2ca4
1 changed files with 2 additions and 4 deletions
6
Roll.lua
6
Roll.lua
|
|
@ -20,10 +20,8 @@ end
|
|||
local function BuildModifierString(modifiers)
|
||||
local parts = {}
|
||||
for _, mod in ipairs(modifiers) do
|
||||
if mod.value ~= 0 then
|
||||
local sign = mod.value >= 0 and "+" or ""
|
||||
table.insert(parts, sign .. mod.value .. " (" .. mod.name .. ")")
|
||||
end
|
||||
local sign = mod.value >= 0 and "+" or ""
|
||||
table.insert(parts, sign .. mod.value .. " (" .. mod.name .. ")")
|
||||
end
|
||||
return table.concat(parts, " ")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue