2,875
edits
(Add function to get a table of all herbs) |
(Add item sources for herb table) |
||
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 ItemSourceTables = require('Module:Items/SourceTables') | |||
function p.getCookedItemsTable(frame) | function p.getCookedItemsTable(frame) | ||
Line 205: | Line 206: | ||
:tag("th"):wikitext("Herb") | :tag("th"):wikitext("Herb") | ||
:tag("th"):wikitext("Value") | :tag("th"):wikitext("Value") | ||
:tag("th"):wikitext("Herb Sources") | |||
:done() | :done() | ||
Line 218: | Line 220: | ||
:tag("td"):wikitext(dlcIcon .. Icons.Icon({herbItem.name, type='item'})) | :tag("td"):wikitext(dlcIcon .. Icons.Icon({herbItem.name, type='item'})) | ||
:tag("td"):wikitext(Icons.GP(herbItem.sellsFor)) | :tag("td"):wikitext(Icons.GP(herbItem.sellsFor)) | ||
:tag('td'):wikitext(ItemSourceTables._getItemSources(herbItem, false, nil, '')) | |||
:done() | :done() | ||
end | end |
edits