4,951
edits
Falterfire (talk | contribs) (Added Summoning to ItemUse list) |
Falterfire (talk | contribs) (Added Summoning to itemUseTables) |
||
Line 111: | Line 111: | ||
local canHerblore = false | local canHerblore = false | ||
local canAgile = false | local canAgile = false | ||
local canSummon = false | |||
if item.trimmedItemID ~= nil then | if item.trimmedItemID ~= nil then | ||
canUpgrade = true | canUpgrade = true | ||
Line 156: | Line 157: | ||
canHerblore = true | canHerblore = true | ||
break | break | ||
end | |||
end | |||
end | |||
if item2.summoningReq ~= nil then | |||
for j, reqSet in pairs(item2.summoningReq) do | |||
for k, req in pairs(reqSet) do | |||
if req.id == item.id then | |||
canSummon = true | |||
break | |||
end | |||
end | end | ||
end | end | ||
Line 225: | Line 237: | ||
end | end | ||
--Summoning | --Summoning | ||
if item.type == 'Shard' or item.type == 'Familiar' or Shared.contains(itemUseArray.Summoning, item.name) then | if canSummon or item.type == 'Shard' or item.type == 'Familiar' or Shared.contains(itemUseArray.Summoning, item.name) then | ||
table.insert(useArray, chr..Icons.Icon({'Summoning', type='skill'})) | table.insert(useArray, chr..Icons.Icon({'Summoning', type='skill'})) | ||
end | end | ||
Line 388: | Line 400: | ||
end | end | ||
end | end | ||
if item2.summoningReq ~= nil then | |||
for j, reqSet in pairs(item2.summoningReq) do | |||
for k, req in pairs(reqSet) do | |||
if req.id == item.id then | |||
local mat = reqSet | |||
local xp = 5 + 2 * math.floor(item2.summoningLevel * 0.2) | |||
local rowReq = Icons._SkillReq('Summoning', item2.summoningLevel) | |||
table.insert(useArray, {item = item2, qty = 25, mats = mat, skill = 'Summoning', reqVal = item2.summoningLevel, req = rowReq, xp = xp}) | |||
end | |||
end | |||
end | |||
end | |||
end | end | ||
if item.grownItemID ~= nil then | if item.grownItemID ~= nil then |