Module:Calculator/ItemEconomy: Difference between revisions

m
Fix: Actually return the table
m (wikitext doesn't like booleans)
m (Fix: Actually return the table)
Line 49: Line 49:
return tbl
return tbl
end
local function booleanToYesNo(bool)
    if booleanValue then
        return "Yes"
    else
        return "No"
    end
end
end


Line 88: Line 80:
addTableRow(tbl, "Economy Factor", calculateFactor(userAmount, calcAmount))
addTableRow(tbl, "Economy Factor", calculateFactor(userAmount, calcAmount))
addTableRow(tbl, "[[Ring of Wealth]] benefits", RoWYN)
addTableRow(tbl, "[[Ring of Wealth]] benefits", RoWYN)
return tbl
end
end


2,875

edits