12,814
edits
m (Add error category to error messages) |
(Update for v1.1) |
||
Line 77: | Line 77: | ||
function(item) | function(item) | ||
if item.golbinRaidExclusive ~= nil and item.golbinRaidExclusive then | if item.golbinRaidExclusive ~= nil and item.golbinRaidExclusive then | ||
return false | |||
elseif item.modifiers == nil or Shared.tableIsEmpty(item.modifiers) then | |||
return false | return false | ||
end | end | ||
for i, mod in | for i, mod in ipairs(modifiers) do | ||
if p.getModifierValue(item.modifiers, mod, skill, getOpposites) ~= 0 then | if p.getModifierValue(item.modifiers, mod, skill, getOpposites) ~= 0 then | ||
return true | return true | ||
Line 95: | Line 97: | ||
local obstList = Agility.getObstacles( | local obstList = Agility.getObstacles( | ||
function(obst) | function(obst) | ||
for i, mod in | for i, mod in ipairs(modifiers) do | ||
if p.getModifierValue(obst.modifiers, mod, skill, getOpposites) ~= 0 then | if p.getModifierValue(obst.modifiers, mod, skill, getOpposites) ~= 0 then | ||
return true | return true | ||
Line 128: | Line 130: | ||
local pillarList = Agility.getPillars( | local pillarList = Agility.getPillars( | ||
function(pillar) | function(pillar) | ||
for i, mod in | for i, mod in ipairs(modifiers) do | ||
if p.getModifierValue(pillar.modifiers, mod, skill, getOpposites) ~= 0 then | if p.getModifierValue(pillar.modifiers, mod, skill, getOpposites) ~= 0 then | ||
return true | return true | ||
Line 144: | Line 146: | ||
local petList = Pets.getPets( | local petList = Pets.getPets( | ||
function(pet) | function(pet) | ||
for i, mod in | for i, mod in ipairs(modifiers) do | ||
if p.getModifierValue(pet.modifiers, mod, skill, getOpposites) ~= 0 then | if p.getModifierValue(pet.modifiers, mod, skill, getOpposites) ~= 0 then | ||
return true | return true | ||
Line 176: | Line 178: | ||
local upgradeList = Shop.getPurchases( | local upgradeList = Shop.getPurchases( | ||
function(category, purchase) | function(category, purchase) | ||
if category == 'GolbinRaid' then | if category == 'melvorD:GolbinRaid' then | ||
return false | return false | ||
end | end | ||
for i, mod in | for i, mod in ipairs(modifiers) do | ||
if p.getModifierValue(purchase.contains.modifiers, mod, skill, getOpposites) ~= 0 then | if p.getModifierValue(purchase.contains.modifiers, mod, skill, getOpposites) ~= 0 then | ||
return true | return true |