using System.Linq;
using Terraria.ID;

namespace Decimation.Lib.Util
{
    public static class WeaponUtils
    {
        private static readonly int[] FireWeapons =
        {
            ItemID.FieryGreatsword,
            ItemID.SolarFlarePickaxe,
            ItemID.MoltenHamaxe,
            ItemID.Sunfury,
            ItemID.SolarEruption,
            ItemID.SolarFlareHammer,
            ItemID.HelFire,
            ItemID.MoltenPickaxe
        };

        private static readonly int[] FireMeleeProjectiles =
        {
            ProjectileID.Flamarang
        };

        public static bool IsFireWeapon(this int itemType)
        {
            return FireWeapons.Contains(itemType);
        }

        public static bool IsFireMeleeProjectile(this int projectileType)
        {
            return FireMeleeProjectiles.Contains(projectileType);
        }
    }
}