4,951
edits
(_getItemUseTable: Correct Farming base harvest quantity) |
Falterfire (talk | contribs) (Fixed some stuff related to Potions and added Astrology as a use) |
||
Line 18: | Line 18: | ||
local itemUseArray = { | local itemUseArray = { | ||
Agility = {}, | Agility = {}, | ||
Astrology = {'Stardust', 'Golden Stardust'}, | |||
Attack = {}, | Attack = {}, | ||
Combat = {'Gold Emerald Ring'}, | Combat = {'Gold Emerald Ring'}, | ||
Line 67: | Line 68: | ||
[23] = 'Combat', | [23] = 'Combat', | ||
[24] = 'Agility', | [24] = 'Agility', | ||
[25] = 'Summoning' | [25] = 'Summoning', | ||
[26] = 'Combat', | |||
[27] = 'Combat', | |||
[28] = 'Combat', | |||
[29] = 'Astrology' | |||
} | } | ||
Line 78: | Line 83: | ||
--Before anything else, if this is a potion add it to the appropriate override section | --Before anything else, if this is a potion add it to the appropriate override section | ||
if item.masteryID ~= nil and item.masteryID[1] == 19 then | if item.masteryID ~= nil and item.masteryID[1] == 19 then | ||
if potionUseArray[item.masteryID[2]] ~= nil then | |||
table.insert(itemUseArray[potionUseArray[item.masteryID[2]]], item.name) | |||
else | |||
table.insert(itemUseArray["Combat"], item.name) | |||
end | |||
end | end | ||
Line 209: | Line 218: | ||
if canAgile or Shared.contains(itemUseArray.Agility, item.name) then | if canAgile or Shared.contains(itemUseArray.Agility, item.name) then | ||
table.insert(useArray, chr..Icons.Icon({'Agility', type='skill'})) | table.insert(useArray, chr..Icons.Icon({'Agility', type='skill'})) | ||
end | |||
--Astrology | |||
if Shared.contains(itemUseArray.Astrology, item.name) then | |||
table.insert(useArray, chr..Icons.Icon({'Astrology', type='skill'})) | |||
end | end | ||
--Cooking | --Cooking |