Files
CalamityModPublic/Systems/Collections/NPCIDs/DemonEyeIDList.cs
T

37 lines
1002 B
C#

using System.Collections.Generic;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Systems.Collections
{
public sealed class DemonEyeIDList : ModSystem
{
public static IList<int> List { get; private set; }
public override void OnModLoad()
{
List =
[
NPCID.DemonEye,
NPCID.CataractEye,
NPCID.SleepyEye,
NPCID.DialatedEye, // it is spelled "dilated"
NPCID.GreenEye,
NPCID.PurpleEye,
NPCID.DemonEyeOwl,
NPCID.DemonEyeSpaceship,
NPCID.DemonEye2,
NPCID.PurpleEye2,
NPCID.GreenEye2,
NPCID.DialatedEye2,
NPCID.SleepyEye2,
NPCID.CataractEye2
];
}
public override void Unload() => List = null;
public static bool Includes(int npcType) => List.Contains(npcType);
}
}