Module:Bulwark calculator

-- local p = {}

function p.main local args = frame:getParent(frame).args local shieldTier = tonumber(args.shieldTier) local debilitate = 13 + math.floor(shieldTier/10) --debil lasts 13 ticks (7.8s) without a shield local res = "" local bulwark = {0,0,0,0} for perkRank = 0,3 do       bulwark[perkRank] = math.ceil(debilitate * (1 + perkRank * .06)) --bulwark perk seems to round up from ingame tests res = res .. "Length of Debilitiate with shield tier " .. shieldTier .. ", Bulwark perk rank " .. perkRank .. " : " .. bulwark[perkRank]*.6 .. "s (" .. bulwark[perkRank] .. "ticks)" .. " "   end return res end

return p