915
edits
(Add function to grab item value (sellsfor) based on item name or item object) |
(Add gem link to gem equipment slot) |
||
(One intermediate revision by the same user not shown) | |||
Line 115: | Line 115: | ||
function p.getItemValue(item) | function p.getItemValue(item) | ||
if type(item) == 'string' then | if type(item) == 'string' then | ||
if | -- Specific check if the item is GP (value of 1) | ||
return 1 | if Shared.compareString('GP', item, true) | ||
or Shared.compareString('Gold Pieces', item, true) then | |||
return 1 | |||
end | end | ||
item = p.getItem(item) | item = p.getItem(item) | ||
end | end | ||
Line 373: | Line 371: | ||
["Passive"] = 'Combat Passive Slot', | ["Passive"] = 'Combat Passive Slot', | ||
["Summon1"] = 'Summoning', | ["Summon1"] = 'Summoning', | ||
["Summon2"] = 'Summoning' | ["Summon2"] = 'Summoning', | ||
["Gem"] = "Gems_(Equipment)" | |||
} | } | ||
local slotText = {} | local slotText = {} |
edits