32 lines
826 B
C#
32 lines
826 B
C#
using System.Collections.Generic;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Systems.Collections
|
|
{
|
|
public sealed class DeathModeSplittingWormList : ModSystem
|
|
{
|
|
public static IList<int> List { get; private set; }
|
|
|
|
public override void OnModLoad()
|
|
{
|
|
List =
|
|
[
|
|
NPCID.DuneSplicerHead,
|
|
NPCID.DuneSplicerBody,
|
|
NPCID.DuneSplicerTail,
|
|
NPCID.DiggerHead,
|
|
NPCID.DiggerBody,
|
|
NPCID.DiggerTail,
|
|
NPCID.SeekerHead,
|
|
NPCID.SeekerBody,
|
|
NPCID.SeekerTail
|
|
];
|
|
}
|
|
|
|
public override void Unload() => List = null;
|
|
|
|
public static bool Includes(int npcType) => List.Contains(npcType);
|
|
}
|
|
}
|