using System.Collections.Generic; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Systems.Collections { public sealed class DestroyerIDList : ModSystem { public static IList List { get; private set; } public override void OnModLoad() { List = [ NPCID.TheDestroyer, NPCID.TheDestroyerBody, NPCID.TheDestroyerTail ]; } public override void Unload() => List = null; public static bool Includes(int npcType) => List.Contains(npcType); } }