41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Systems.Collections
|
|
{
|
|
public sealed class HornetIDList : ModSystem
|
|
{
|
|
public static IList<int> List { get; private set; }
|
|
|
|
public override void OnModLoad()
|
|
{
|
|
List =
|
|
[
|
|
NPCID.BigHornetStingy,
|
|
NPCID.LittleHornetStingy,
|
|
NPCID.BigHornetSpikey,
|
|
NPCID.LittleHornetSpikey,
|
|
NPCID.BigHornetLeafy,
|
|
NPCID.LittleHornetLeafy,
|
|
NPCID.BigHornetHoney,
|
|
NPCID.LittleHornetHoney,
|
|
NPCID.BigHornetFatty,
|
|
NPCID.LittleHornetFatty,
|
|
NPCID.BigStinger,
|
|
NPCID.LittleStinger,
|
|
NPCID.Hornet,
|
|
NPCID.HornetFatty,
|
|
NPCID.HornetHoney,
|
|
NPCID.HornetLeafy,
|
|
NPCID.HornetSpikey,
|
|
NPCID.HornetStingy
|
|
];
|
|
}
|
|
|
|
public override void Unload() => List = null;
|
|
|
|
public static bool Includes(int npcType) => List.Contains(npcType);
|
|
}
|
|
}
|