572
edits
No edit summary |
No edit summary |
||
Line 713: | Line 713: | ||
if modifier == 0 then | if modifier == 0 then | ||
-- Buildable but no bonuses | -- Buildable but no bonuses | ||
table.insert(ret, '\r\n| | table.insert(ret, '\r\n|class="table-na"|+0%') | ||
else | else | ||
-- Bonus or penalty | -- Bonus or penalty | ||
local | local class = modifier < 0 and 'table-negative' or 'table-positive' | ||
local modifier_value = Shared.numStrWithSign(modifier) | local modifier_value = Shared.numStrWithSign(modifier) | ||
table.insert(ret, '\r\n| | table.insert(ret, '\r\n|class="'..class..'"|<b>'..modifier_value..'%</b>') | ||
end | end | ||
else | else |
edits