Anonymous

Module:MoneyMakingGuide: Difference between revisions

From Melvor Idle
Reformat total profit layout
(Add support for SC name and SC icon as item)
(Reformat total profit layout)
Line 92: Line 92:
local max = tonumber(maxProfit)
local max = tonumber(maxProfit)
if max == nil then
if min == nil then
error("maxProfit is not a valid number.")  
error("maxProfit is not a valid number.")  
end
end
Line 99: Line 99:
if min then
if min then
sb  :append(icons.GP(num.round2(min / 1000)))
sb  :append(icons.GP(num.round2(min)))
:append('k/hr Minimum ~ ')
:append(' Minimum ~ ')
end
end
sb  :append(icons.GP(num.round2(max / 1000)))
sb  :append(num.round2(max))
:append('k/hr Maximum')
:append(' Maximum')
return sb:toString()
return sb:toString()
2,874

edits