4,951
edits
Falterfire (talk | contribs) (added a jadestone exception to the things that reference gems) |
Falterfire (talk | contribs) (CraftReq now accounts for costs including coins) |
||
Line 53: | Line 53: | ||
qty = item.craftQty | qty = item.craftQty | ||
time = 3 | time = 3 | ||
table.insert(tables, p.buildCreationTable(skill, lvl, xp, req, qty, time)) | table.insert(tables, p.buildCreationTable(skill, lvl, xp, req, qty, time, nil, nil, item.craftGPCost)) | ||
end | end | ||
if item.runecraftingLevel ~= nil then | if item.runecraftingLevel ~= nil then | ||
Line 260: | Line 260: | ||
end | end | ||
function p.buildCreationTable(skill, lvl, xp, req, qty, time, maxTime, specialReq) | function p.buildCreationTable(skill, lvl, xp, req, qty, time, maxTime, specialReq, gpCost) | ||
if qty == nil then qty = 1 end | if qty == nil then qty = 1 end | ||
local resultPart = {} | local resultPart = {} | ||
Line 284: | Line 284: | ||
table.insert(resultPart, Icons.Icon({matItem.name, type='item', qty=mat.qty})) | table.insert(resultPart, Icons.Icon({matItem.name, type='item', qty=mat.qty})) | ||
end | end | ||
end | |||
if gpCost ~= nil and gpCost > 0 then | |||
table.insert(resultPart, '<br/>') | |||
table.insert(resultPart, Icons.GP(gpCost)) | |||
end | end | ||
else | else |