Module:InfoboxBossEnemy

From He is Coming Official Wiki

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