Editing Module:ProfessionList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 154: | Line 154: | ||
-- include the price of selling the product |
-- include the price of selling the product |
||
item.sellPrice = search.getShopSellPrice(item.product) |
|||
local qty = item.output[1].quantity |
|||
item.sellPrice = sell and qty and sell * qty |
|||
item.profit = item.buyPrice and item.sellPrice and item.sellPrice - item.buyPrice |
item.profit = item.buyPrice and item.sellPrice and item.sellPrice - item.buyPrice |
||
item.profitPerXP = item.profit and item.xp and item.profit / item.xp |
|||
end |
end |