Allow World Weapons in Extra slots

This commit is contained in:
Justin Edmund 2023-08-31 18:41:49 -07:00
parent 39b353d9bd
commit f982647911

View file

@ -60,7 +60,7 @@ class GridWeapon < ApplicationRecord
# Validates whether the weapon can be added to the desired position
def compatible_with_position
return unless [9, 10, 11].include?(position.to_i) && ![11, 16, 17, 28, 29].include?(weapon.series)
return unless [9, 10, 11].include?(position.to_i) && ![11, 16, 17, 28, 29, 32].include?(weapon.series)
errors.add(:series, 'must be compatible with position')
end