Anonymous

Module:Calculator/Summoning Interval Efficiency: Difference between revisions

From Melvor Idle
m
Round where data is formatted for output instead
m (Add rounding to results)
m (Round where data is formatted for output instead)
Line 39: Line 39:
local threeTabletTimeSave = threeTabletTime - playerStats.summoningInterval
local threeTabletTimeSave = threeTabletTime - playerStats.summoningInterval
result.effectiveTablets = number.round(effectiveTablets, 2)
result.effectiveTablets = effectiveTablets
result.twoTabletTimeSave = number.round(twoTabletTimeSave, 2)
result.twoTabletTimeSave = twoTabletTimeSave
result.threeTabletTimeSave = number.round(threeTabletTimeSave, 2)
result.threeTabletTimeSave = threeTabletTimeSave
return result
return result
end
end
Line 79: Line 79:
local twoTab = number.actionTimeToTimeSpan(calcResult.twoTabletTimeSave)
local twoTab = number.actionTimeToTimeSpan(calcResult.twoTabletTimeSave)
     local threeTab = number.actionTimeToTimeSpan(calcResult.threeTabletTimeSave)
     local threeTab = number.actionTimeToTimeSpan(calcResult.threeTabletTimeSave)
     tableData.effectiveTablets = calcResult.effectiveTablets
     tableData.effectiveTablets = number.round(calcResult.effectiveTablets, 2)
tableData.twoTabletTimeSave = twoTab.totalSeconds
tableData.twoTabletTimeSave = number.round(twoTab.totalSeconds, 2)
tableData.threeTabletTimeSave = threeTab.totalSeconds
tableData.threeTabletTimeSave = number.round(threeTab.totalSeconds, 2)
end
end


2,875

edits