Module:InfoboxBossEnemy

From He is Coming Official Wiki
Revision as of 16:35, 24 October 2025 by Benjiminio (talk | contribs) (Created page with "-- Module:InfoboxBossEnemy local p = {} -- Function to extract the final number from a string function p.extractStat(frame, statString) local stat = statString:match("(%d+)%s*$") -- get the last number at the end return stat or 0 -- return 0 if nothing found end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:InfoboxBossEnemy/doc

-- Module:InfoboxBossEnemy
local p = {}

-- Function to extract the final number from a string
function p.extractStat(frame, statString)
    local stat = statString:match("(%d+)%s*$")  -- get the last number at the end
    return stat or 0  -- return 0 if nothing found
end

return p