Files
CalamityModPublic/Systems/Collections/NPCs/PumpkinMoonBuffList.cs
T

43 lines
1.2 KiB
C#

using System.Collections.Generic;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Systems.Collections
{
/// <summary>
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of all NPC Types that receive Post-DoG Pumpkin Moon Buff
/// </summary>
public sealed class PumpkinMoonBuffList : ModSystem
{
public static IList<int> List { get; private set; }
public override void OnModLoad()
{
List =
[
NPCID.Scarecrow1,
NPCID.Scarecrow2,
NPCID.Scarecrow3,
NPCID.Scarecrow4,
NPCID.Scarecrow5,
NPCID.Scarecrow6,
NPCID.Scarecrow7,
NPCID.Scarecrow8,
NPCID.Scarecrow9,
NPCID.Scarecrow10,
NPCID.HeadlessHorseman,
NPCID.MourningWood,
NPCID.Splinterling,
NPCID.Pumpking,
NPCID.PumpkingBlade,
NPCID.Hellhound,
NPCID.Poltergeist
];
}
public override void Unload() => List = null;
public static bool Includes(int npcType) => List.Contains(npcType);
}
}