Module:Calculator/Summoning Interval Efficiency: Difference between revisions

m
no edit summary
m (Replace deprecated functions with TimeSpan)
mNo edit summary
 
Line 119: Line 119:
function p._main(args)
function p._main(args)
-- Parse inputs and turn intervals into integers (hundreds of a second)
-- Parse inputs and turn intervals into integers (hundreds of a second)
local summoningInterval = number.toNumberOrError(args.summoningInterval) * 100
local summoningInterval = number.toNumberOrError(args.summoningInterval)
local actionTimeSaved = number.toNumberOrError(args.actionTimeSaved) * 100
local actionTimeSaved = number.toNumberOrError(args.actionTimeSaved)
local tabletsMade = number.toNumberOrError(args.tabletsMade)
local tabletsMade = number.toNumberOrError(args.tabletsMade)
local tabletDoubleChance = number.toNumberOrDefault(args.tabletDoubleChance, 0)
local tabletDoubleChance = number.toNumberOrDefault(args.tabletDoubleChance, 0)
2,875

edits