4,951
edits
Falterfire (talk | contribs) (Now linking spell names in the spell use table) |
Falterfire (talk | contribs) (Added agility override to item use array) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
--Brute forcing some item uses to make things easier | --Brute forcing some item uses to make things easier | ||
local itemUseArray = { | local itemUseArray = { | ||
Agility = {}, | |||
Combat = {}, | Combat = {}, | ||
Cooking = {'Cooking Gloves', 'Crown of Rhaelyx'}, | Cooking = {'Cooking Gloves', 'Crown of Rhaelyx'}, | ||
Line 56: | Line 57: | ||
[22] = 'Combat', | [22] = 'Combat', | ||
[23] = 'Combat', | [23] = 'Combat', | ||
[24] = 'Agility' | |||
} | } | ||
Line 146: | Line 148: | ||
table.insert(useArray, '* [[Upgrading Items]]') | table.insert(useArray, '* [[Upgrading Items]]') | ||
end | end | ||
--Agility | |||
if Shared.contains(itemUseArray.Agility, item.name) then | |||
table.insert(useArray, '* '..Icons.Icon({'Agility', type='skill'})) | |||
end | |||
--Cooking | --Cooking | ||
if item.cookedItemID ~= nil or Shared.contains(itemUseArray.Cooking, item.name) then | if item.cookedItemID ~= nil or Shared.contains(itemUseArray.Cooking, item.name) then |