31 lines
865 B
C#
31 lines
865 B
C#
using System.Collections.Generic;
|
|
using CalamityMod.NPCs.Ravager;
|
|
using Terraria.ModLoader;
|
|
using static Terraria.ModLoader.ModContent;
|
|
|
|
namespace CalamityMod.Systems.Collections
|
|
{
|
|
public sealed class RavagerIDList : ModSystem
|
|
{
|
|
public static IList<int> List { get; private set; }
|
|
|
|
public override void OnModLoad()
|
|
{
|
|
// Purposefully does not include the freed head
|
|
List =
|
|
[
|
|
NPCType<RavagerBody>(),
|
|
NPCType<RavagerClawLeft>(),
|
|
NPCType<RavagerClawRight>(),
|
|
NPCType<RavagerLegLeft>(),
|
|
NPCType<RavagerLegRight>(),
|
|
NPCType<RavagerHead>()
|
|
];
|
|
}
|
|
|
|
public override void Unload() => List = null;
|
|
|
|
public static bool Includes(int npcType) => List.Contains(npcType);
|
|
}
|
|
}
|