Module:Calculator/Summoning Interval Efficiency: Difference between revisions

m
Fix incorrect variable name
(Create module to calculate time efficiency when using summoning synergies that decrease action interval)
 
m (Fix incorrect variable name)
Line 71: Line 71:
         :addClass("wikitable sticky-header text-align-right align-left-1")
         :addClass("wikitable sticky-header text-align-right align-left-1")


if res.isInfinite then
if calcResult.isInfinite then
tableData.effectiveTablets = 'Infinite'
tableData.effectiveTablets = 'Infinite'
tableData.twoTabletTimeSave = 'Infinite'
tableData.twoTabletTimeSave = 'Infinite'
Line 77: Line 77:
else
else
-- Calculate time saved in seconds for two and three tablet synergy
-- Calculate time saved in seconds for two and three tablet synergy
local twoTab = number.actionTimeToTimeSpan(res.twoTabletTimeSave)
local twoTab = number.actionTimeToTimeSpan(calcResult.twoTabletTimeSave)
     local threeTab = number.actionTimeToTimeSpan(res.threeTabletTimeSave)
     local threeTab = number.actionTimeToTimeSpan(calcResult.threeTabletTimeSave)
     tableData.effectiveTablets = calcResult.effectiveTablets
     tableData.effectiveTablets = calcResult.effectiveTablets
tableData.twoTabletTimeSave = twoTab.totalSeconds
tableData.twoTabletTimeSave = twoTab.totalSeconds
918

edits