4,951
edits
Falterfire (talk | contribs) (Adding a space in front of glove charges to fix an issue) |
Falterfire (talk | contribs) (Added new Creation Table override for arrow shafts) |
||
Line 225: | Line 225: | ||
qty = item.fletchQty | qty = item.fletchQty | ||
time = 2 | time = 2 | ||
if item.name == 'Arrow Shafts' then | |||
--Arrow Shafts get special (weird) treatment | |||
req = '1 of any [[Log]]' | |||
qty = '15 - 135' | |||
end | |||
table.insert(tables, p.buildCreationTable(skill, lvl, xp, req, qty, time)) | table.insert(tables, p.buildCreationTable(skill, lvl, xp, req, qty, time)) | ||
end | end | ||
Line 369: | Line 374: | ||
if req ~= nil then | if req ~= nil then | ||
result = result..'\r\n|-\r\n!style="text-align: right;"|Materials\r\n|' | result = result..'\r\n|-\r\n!style="text-align: right;"|Materials\r\n|' | ||
for i, mat in pairs(req) do | if type(req) == 'table' then | ||
for i, mat in pairs(req) do | |||
if i > 1 then result = result..'<br/>' end | |||
local matItem = p.getItemByID(mat.id) | |||
if matItem == nil then | |||
result = result..mat.qty..'x ?????' | |||
else | |||
result = result..Icons.Icon({matItem.name, type='item', qty=mat.qty}) | |||
end | |||
end | end | ||
else | |||
result = result..req | |||
end | end | ||
end | end |