using System.Collections.Generic; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Systems.Collections { /// /// A which contains a that has the Projectile IDs of all projectiles who are buffed Dungeon projectiles. /// public sealed class BuffedDungeonProjectilesList : ModSystem { public static IList List { get; private set; } public override void OnModLoad() { List = [ ProjectileID.PaladinsHammerHostile, ProjectileID.ShadowBeamHostile, ProjectileID.InfernoHostileBolt, ProjectileID.InfernoHostileBlast, ProjectileID.LostSoulHostile, ProjectileID.SniperBullet, ProjectileID.RocketSkeleton, ProjectileID.BulletDeadeye, ProjectileID.Shadowflames ]; } public override void Unload() => List = null; /// /// A shorthand method to check if this projectile is a buffed Dungeon projectile. /// public static bool Includes(int projType) => List.Contains(projType); } }