2,875
edits
(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 | 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 | sb :append(icons.GP(num.round2(min))) | ||
:append(' | :append(' Minimum ~ ') | ||
end | end | ||
sb :append | sb :append(num.round2(max)) | ||
:append(' | :append(' Maximum') | ||
return sb:toString() | return sb:toString() |
edits