Anonymous

Module:Skills/Artisan: Difference between revisions

From Melvor Idle
Updated cooking fire to use the correct cost function
(Added getCookingFireTable)
(Updated cooking fire to use the correct cost function)
Line 9: Line 9:
local Items = require('Module:Items')
local Items = require('Module:Items')
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
local Shop = require('Module:Shop')


function p.getCookedItemsTable(frame)
function p.getCookedItemsTable(frame)
Line 126: Line 127:
     end
     end
     result = result..'||style="text-align:right"|'..level
     result = result..'||style="text-align:right"|'..level
     result = result..'||style="text-align:right" data-sort-value="'..tool.cost.gp..'"|'..Icons.GP(tool.cost.gp)
     result = result..'||style="text-align:right" data-sort-value="'..tool.cost.gp..'"|'..Shop.getCostString(tool.cost)


     local bonusXP = tool.contains.modifiers.increasedSkillXP[1][2]
     local bonusXP = tool.contains.modifiers.increasedSkillXP[1][2]