2,875
edits
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 = | result.effectiveTablets = effectiveTablets | ||
result.twoTabletTimeSave = | result.twoTabletTimeSave = twoTabletTimeSave | ||
result.threeTabletTimeSave = | 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 | ||
edits