Editing Module:LeatherworkerList
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 3: | Line 3: | ||
local lang = mw.getContentLanguage() |
local lang = mw.getContentLanguage() |
||
local plist = require('Module:ProfessionList') |
local plist = require('Module:ProfessionList') |
||
local |
local rts = require('Module:RecipeTreeSearch') |
||
local discount = require('Module:MerchantHideDiscount') |
local discount = require('Module:MerchantHideDiscount') |
||
local purge = require('Module:Purge')._purge |
local purge = require('Module:Purge')._purge |
||
Line 78: | Line 78: | ||
item.profitPerHour = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
item.profitPerHour = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
||
item.profitPerHourDiscount = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
item.profitPerHourDiscount = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
||
-- discounted buy price is not provided by the search, have to do it manually |
-- discounted buy price is not provided by the search, have to do it manually |
||
item.discountLevel = discount[item.material] |
item.discountLevel = discount[item.material] |
||
item.buyPriceDiscount = |
item.buyPriceDiscount = rts.getShopSellPrice(item.material) |
||
item.profitDiscount = item.sellPrice and item.buyPriceDiscount and item.sellPrice - item.buyPriceDiscount |
item.profitDiscount = item.sellPrice and item.buyPriceDiscount and item.sellPrice - item.buyPriceDiscount |
||
item.profitPerHourDiscount = item.profitDiscount and item.productPerHour and math.floor(item.profitDiscount * item.productPerHour) |
item.profitPerHourDiscount = item.profitDiscount and item.productPerHour and math.floor(item.profitDiscount * item.productPerHour) |