Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
Added another check for Melee weapons
(Removed more no-wraps)
(Added another check for Melee weapons)
Line 316: Line 316:
       local isMatch = true
       local isMatch = true
       if style == 'Melee' then
       if style == 'Melee' then
         if item.defenceLevelRequired == nil and not Shared.contains(styleOverrides.Melee, item.name) then isMatch = false end
         if (item.defenceLevelRequired == nil and item.attackLevelRequired == nil) and not Shared.contains(styleOverrides.Melee, item.name) then isMatch = false end
       elseif style == 'Ranged' then
       elseif style == 'Ranged' then
         if item.rangedLevelRequired == nil and not Shared.contains(styleOverrides.Ranged, item.name) then isMatch = false end
         if item.rangedLevelRequired == nil and not Shared.contains(styleOverrides.Ranged, item.name) then isMatch = false end