Anonymous

Module:Items/ComparisonTables/Sandbox: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
 
Line 55: Line 55:
end
end


if not Shared.contains(item.validSlots, slotLocalID) or slotLocalID ~= twoHandedWeaponID then  
if not Shared.contains(item.validSlots, slotLocalID) then
return false
if slotLocalID == twoHandedWeaponID then
return Items._getItemStat(item, 'isTwoHanded')
end
end
end
 
if slotLocalID == twoHandedWeaponID then
return Items._getItemStat(item, 'isTwoHanded')
end
if slotLocalID == 'Weapon' then --For quiver slot or weapon slot, 'other' is the ammo type
if slotLocalID == 'Weapon' then --For quiver slot or weapon slot, 'other' is the ammo type
return other == item.ammoTypeRequired
return other == item.ammoTypeRequired
2,875

edits