using System.Collections.Generic; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Systems.Collections { /// /// A that contains a of all NPC Types that receive Post-DoG Eclipse Buff /// public sealed class EclipseBuffList : ModSystem { public static IList List { get; private set; } public override void OnModLoad() { List = [ NPCID.Eyezor, NPCID.Reaper, NPCID.Frankenstein, NPCID.SwampThing, NPCID.Vampire, NPCID.VampireBat, NPCID.Butcher, NPCID.CreatureFromTheDeep, NPCID.Fritz, NPCID.Nailhead, NPCID.Psycho, NPCID.DeadlySphere, NPCID.DrManFly, NPCID.ThePossessed, NPCID.Mothron, NPCID.MothronEgg, NPCID.MothronSpawn ]; } public override void Unload() => List = null; public static bool Includes(int npcType) => List.Contains(npcType); } }