Module:Equipment/Recommended: Difference between revisions

m
allow prayer icon
m (adding prayer)
m (allow prayer icon)
Line 25: Line 25:
{ placement = 13, name = 'familiar1', icon = 'Slot_summon', txt = 'Familiar Left', link = 'Summoning' },
{ placement = 13, name = 'familiar1', icon = 'Slot_summon', txt = 'Familiar Left', link = 'Summoning' },
{ placement = 14, name = 'familiar2', icon = 'Slot_summon', txt = 'Familiar Right', link = 'Summoning' },
{ placement = 14, name = 'familiar2', icon = 'Slot_summon', txt = 'Familiar Right', link = 'Summoning' },
{ placement = 15, name = 'prayer', icon = 'Slot_prayer', txt = 'Prayers', link = 'Prayer' },
{ placement = 15, name = 'prayer', icon = 'Slot_prayer', txt = 'Prayers', link = 'Prayer', icontype = "prayer" },
{ placement = 99, name = 'notes', icon = '', txt = 'Notes', link = '', hasStats = false }
{ placement = 99, name = 'notes', icon = '', txt = 'Notes', link = '', hasStats = false }
Line 69: Line 69:
else
else
-- Otherwise treat as an item icon
-- Otherwise treat as an item icon
itemIcon = Icons.Icon({v, img=v, type='item'})
icontype = data.icontype or 'item'
itemIcon = Icons.Icon({v, img=v, type=icontype})
end
end
local gearname = tr:tag('td'):wikitext(itemIcon)
local gearname = tr:tag('td'):wikitext(itemIcon)
892

edits