Anonymous

Module:Equipment/Recommended: Difference between revisions

From Melvor Idle
m
icontype
m (allow prayer icon)
m (icontype)
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', icontype = "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
icontype = data.icontype or 'item'
local icontype = v.icontype or 'item'
itemIcon = Icons.Icon({v, img=v, type=icontype})
itemIcon = Icons.Icon({v, img=v, type=icontype})
end
end
Line 238: Line 238:
familiar22 = 'Octopus',
familiar22 = 'Octopus',
familiar13 = 'Crow',
familiar13 = 'Crow',
familiar23 = 'Bear'
familiar23 = 'Bear',
}} )
}} )
end
end


return p
return p
892

edits