Module:LeatherworkerList: Difference between revisions

m
no edit summary
(Based on the same codebase as other Profession Lists, customised to active Leatherworker)
 
mNo edit summary
Line 60:
-- do calculations and determine strings to go in cells
function p.formatResults(results)
local discountList = discount.main()
 
-- iterate through products
Line 157 ⟶ 155:
item.profitPerXPDiscount = item.profitDiscount and item.XP and math.floor(item.profitDiscount / item.XP * 100) / 100
local hideName = string.gsub(item.name,'Leather','Hide')
item.discountLevel = discountListdiscount[hideName]
 
-- a lot of downtime in leatherworker
7,249

edits