Module:InfoboxBossEnemy

From He is Coming Official Wiki
Revision as of 16:41, 24 October 2025 by Benjiminio (talk | contribs)
(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)
    local statString = frame.args[1] or "0"   -- get the first argument safely
    local stat = statString:match("(%d+)%s*$") -- capture last number
    return stat or "0"
end

return p