Module:HeroDataArrays: Difference between revisions

Vergir (talk | contribs)
heroBulletDamageTable: list alt-fire weapons as their own rows instead of a separate table (with help from vergir-bot LLM)
No edit summary
Line 30: Line 30:


-- Helper function to round numeric values
-- Helper function to round numeric values
local function roundValue(value)
-- local function roundValue(value)
     if type(value) == "number" then
--     if type(value) == "number" then
         return util_module.round_to_sig_fig(value, 3)
--         return util_module.round_to_sig_fig(value, 3)
     end
--     end
     return value
--     return value
end
-- end


-- Round to an integer (up to 2 digits)
-- Round to an integer (up to 2 digits)