2,875
edits
m (Change user input of actionTime to seconds instead of hundreds) |
m (Add experience per hour row) |
||
Line 28: | Line 28: | ||
local targetExp = MEXP.expForLevel(targetLvl) | local targetExp = MEXP.expForLevel(targetLvl) | ||
local expRemaining = math.max(targetExp - currentExp, 0) | local expRemaining = math.max(targetExp - currentExp, 0) | ||
local expPerHour = math.floor(360000 / actionTime * expPerAction) | |||
local actionsToTarget = math.ceil(expRemaining / expPerAction) | local actionsToTarget = math.ceil(expRemaining / expPerAction) | ||
Line 39: | Line 40: | ||
addTableRow(tbl, "Target Experience", number.formatnum(targetExp)) | addTableRow(tbl, "Target Experience", number.formatnum(targetExp)) | ||
addTableRow(tbl, "Experience Remaining", number.formatnum(expRemaining)) | addTableRow(tbl, "Experience Remaining", number.formatnum(expRemaining)) | ||
addTableRow(tbl, "Experience Per Hour", number.formatnum(expPerHour)) | |||
addTableRow(tbl, "Actions Left", number.formatnum(actionsToTarget)) | addTableRow(tbl, "Actions Left", number.formatnum(actionsToTarget)) | ||
addTableRow(tbl, "Time Left", formatTime(timeToTarget)) | addTableRow(tbl, "Time Left", formatTime(timeToTarget)) |
edits