Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 75: Line 75:


if not Shared.contains(item.validSlots, slotLocalID) then  
if not Shared.contains(item.validSlots, slotLocalID) then  
-- Special case for when the slot is Weapon but the data slot is Quiver (throwables)
if slotLocalID == 'Weapon' and Shared.contains({'Javelins', 'ThrowingKnives'}, item.ammoType) then
return true
end
-- Special case when the slot ID is for two handed weapons (this ID doesn't actually exist in game)
if slotLocalID == twoHandedWeaponID then
if slotLocalID == twoHandedWeaponID then
return Items._getItemStat(item, 'isTwoHanded')
return Items._getItemStat(item, 'isTwoHanded')
Line 87: Line 93:
if Items._getItemStat(item, 'isTwoHanded') then
if Items._getItemStat(item, 'isTwoHanded') then
return false
return false
end
if Shared.contains({'Javelins', 'ThrowingKnives'}, item.ammoType) then
return true
end
end
-- Exclude throwables from ammo.
-- Exclude throwables from ammo.
2,875

edits