Module:ItemTables: Difference between revisions

Jump to navigation Jump to search
add bullet velocity stat
remove local commas function, functionality succeeded by Module:Addcommas
Line 4: Line 4:
local get_type = require("Module:ItemData")._get_type
local get_type = require("Module:ItemData")._get_type
local commas = require("Module:Addcommas")
local commas = require("Module:Addcommas")
--[===[
-- Adds commas delimiter to the thousands place
function Format(amount)
    local formatted = amount
    while true do
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
        if (k == 0) then
            break
        end
    end
    return formatted
end
--]===]


-- Returns an array of item tables that have the same properties
-- Returns an array of item tables that have the same properties