Module:LeatherworkerList: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Based on the same codebase as other Profession Lists, customised to active Leatherworker) |
Californ1a (talk | contribs) mNo edit summary |
||
Line 60: | Line 60: | ||
-- do calculations and determine strings to go in cells |
-- do calculations and determine strings to go in cells |
||
function p.formatResults(results) |
function p.formatResults(results) |
||
local discountList = discount.main() |
|||
-- iterate through products |
-- iterate through products |
||
Line 157: | Line 155: | ||
item.profitPerXPDiscount = item.profitDiscount and item.XP and math.floor(item.profitDiscount / item.XP * 100) / 100 |
item.profitPerXPDiscount = item.profitDiscount and item.XP and math.floor(item.profitDiscount / item.XP * 100) / 100 |
||
local hideName = string.gsub(item.name,'Leather','Hide') |
local hideName = string.gsub(item.name,'Leather','Hide') |
||
item.discountLevel = |
item.discountLevel = discount[hideName] |
||
-- a lot of downtime in leatherworker |
-- a lot of downtime in leatherworker |