33 lines
994 B
C#
33 lines
994 B
C#
using System.Collections.Generic;
|
|
using CalamityMod.NPCs.Perforator;
|
|
using Terraria.ModLoader;
|
|
using static Terraria.ModLoader.ModContent;
|
|
|
|
namespace CalamityMod.Systems.Collections
|
|
{
|
|
public sealed class PerforatorWormIDList : ModSystem
|
|
{
|
|
public static IList<int> List { get; private set; }
|
|
|
|
public override void OnModLoad()
|
|
{
|
|
List =
|
|
[
|
|
NPCType<PerforatorHeadLarge>(),
|
|
NPCType<PerforatorBodyLarge>(),
|
|
NPCType<PerforatorTailLarge>(),
|
|
NPCType<PerforatorHeadMedium>(),
|
|
NPCType<PerforatorBodyMedium>(),
|
|
NPCType<PerforatorTailMedium>(),
|
|
NPCType<PerforatorHeadSmall>(),
|
|
NPCType<PerforatorBodySmall>(),
|
|
NPCType<PerforatorTailSmall>()
|
|
];
|
|
}
|
|
|
|
public override void Unload() => List = null;
|
|
|
|
public static bool Includes(int npcType) => List.Contains(npcType);
|
|
}
|
|
}
|