Module:ProfessionList: Difference between revisions
m
incorporate quantity of product item in the returned sellPrice variable
m (profit per xp) |
m (incorporate quantity of product item in the returned sellPrice variable) |
||
Line 154:
-- include the price of selling the product
item.sellPrice = search.getShopSellPrice(item.product) * (item.output[1].quantity or 0)
item.profit = item.buyPrice and item.sellPrice and item.sellPrice - item.buyPrice
item.profitPerXP = item.profit and item.xp and item.profit / item.xp
|