155 lines
5.2 KiB
C#
155 lines
5.2 KiB
C#
using System.Collections.Generic;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Systems.Collections
|
|
{
|
|
public sealed class ZeroContactDamageNPCList : ModSystem
|
|
{
|
|
public static IList<int> List { get; private set; }
|
|
|
|
public override void OnModLoad()
|
|
{
|
|
List =
|
|
[
|
|
NPCID.Harpy,
|
|
NPCID.Salamander,
|
|
NPCID.Salamander2,
|
|
NPCID.Salamander3,
|
|
NPCID.Salamander4,
|
|
NPCID.Salamander5,
|
|
NPCID.Salamander6,
|
|
NPCID.Salamander7,
|
|
NPCID.Salamander8,
|
|
NPCID.Salamander9,
|
|
NPCID.GiantCursedSkull,
|
|
NPCID.FungiBulb,
|
|
NPCID.GiantFungiBulb,
|
|
NPCID.IcyMerman,
|
|
NPCID.AngryNimbus,
|
|
NPCID.SandElemental,
|
|
NPCID.DarkCaster,
|
|
NPCID.FireImp,
|
|
NPCID.Tim,
|
|
NPCID.CultistArcherBlue,
|
|
NPCID.DesertDjinn,
|
|
NPCID.DiabolistRed,
|
|
NPCID.DiabolistWhite,
|
|
NPCID.Gastropod,
|
|
NPCID.IceElemental,
|
|
NPCID.IchorSticker,
|
|
NPCID.Necromancer,
|
|
NPCID.NecromancerArmored,
|
|
NPCID.RaggedCaster,
|
|
NPCID.RaggedCasterOpenCoat,
|
|
NPCID.RuneWizard,
|
|
NPCID.SkeletonArcher,
|
|
NPCID.SkeletonCommando,
|
|
NPCID.SkeletonSniper,
|
|
NPCID.TacticalSkeleton,
|
|
NPCID.Clown,
|
|
NPCID.GoblinArcher,
|
|
NPCID.GoblinSorcerer,
|
|
NPCID.GoblinSummoner,
|
|
NPCID.PirateCrossbower,
|
|
NPCID.PirateDeadeye,
|
|
NPCID.PirateCaptain,
|
|
NPCID.SnowmanGangsta,
|
|
NPCID.SnowBalla,
|
|
NPCID.DrManFly,
|
|
NPCID.Eyezor,
|
|
NPCID.Nailhead,
|
|
NPCID.BrainScrambler,
|
|
NPCID.GigaZapper,
|
|
NPCID.RayGunner,
|
|
NPCID.ScutlixRider,
|
|
NPCID.MartianWalker,
|
|
NPCID.MartianTurret,
|
|
NPCID.ElfCopter,
|
|
NPCID.ElfArcher,
|
|
NPCID.NebulaBrain,
|
|
NPCID.NebulaSoldier,
|
|
NPCID.StardustCellSmall,
|
|
NPCID.StardustJellyfishBig,
|
|
NPCID.StardustSoldier,
|
|
NPCID.StardustSpiderBig,
|
|
NPCID.VortexHornetQueen,
|
|
NPCID.VortexRifleman,
|
|
NPCID.VortexSoldier,
|
|
NPCID.PirateShipCannon,
|
|
NPCID.MartianSaucer,
|
|
NPCID.MartianSaucerCannon,
|
|
NPCID.MartianSaucerCore,
|
|
NPCID.MartianSaucerTurret,
|
|
NPCID.Probe,
|
|
NPCID.CultistBoss,
|
|
NPCID.GolemHead,
|
|
NPCID.GolemHeadFree,
|
|
NPCID.MoonLordFreeEye,
|
|
NPCID.BloodSquid,
|
|
NPCID.PlanterasHook,
|
|
NPCID.Dandelion,
|
|
NPCID.DD2DarkMageT1,
|
|
NPCID.DD2DarkMageT3,
|
|
NPCID.DD2OgreT2,
|
|
NPCID.DD2OgreT3,
|
|
NPCID.DD2GoblinBomberT1,
|
|
NPCID.DD2GoblinBomberT2,
|
|
NPCID.DD2GoblinBomberT3,
|
|
NPCID.DD2JavelinstT1,
|
|
NPCID.DD2JavelinstT2,
|
|
NPCID.DD2JavelinstT3,
|
|
NPCID.DD2KoboldWalkerT2,
|
|
NPCID.DD2KoboldWalkerT3,
|
|
NPCID.DD2DrakinT2,
|
|
NPCID.DD2DrakinT3,
|
|
NPCID.DD2KoboldFlyerT2,
|
|
NPCID.DD2KoboldFlyerT3,
|
|
NPCID.DD2WitherBeastT2,
|
|
NPCID.DD2WitherBeastT3,
|
|
NPCID.DD2LightningBugT3,
|
|
NPCID.MourningWood,
|
|
NPCID.Pumpking,
|
|
NPCID.Everscream,
|
|
NPCID.IceQueen,
|
|
NPCID.SantaNK1,
|
|
NPCID.DevourerBody,
|
|
NPCID.DevourerTail,
|
|
NPCID.DiggerBody,
|
|
NPCID.DiggerTail,
|
|
NPCID.TombCrawlerBody,
|
|
NPCID.TombCrawlerTail,
|
|
NPCID.DuneSplicerBody,
|
|
NPCID.DuneSplicerTail,
|
|
NPCID.GiantWormBody,
|
|
NPCID.GiantWormTail,
|
|
NPCID.LeechBody,
|
|
NPCID.LeechTail,
|
|
NPCID.StardustWormBody,
|
|
NPCID.StardustWormTail,
|
|
NPCID.SeekerBody,
|
|
NPCID.SeekerTail,
|
|
NPCID.BoneSerpentBody,
|
|
NPCID.BoneSerpentTail,
|
|
NPCID.WyvernBody,
|
|
NPCID.WyvernTail,
|
|
NPCID.WyvernBody2,
|
|
NPCID.WyvernBody3,
|
|
NPCID.WyvernLegs,
|
|
NPCID.CultistDragonBody1,
|
|
NPCID.CultistDragonBody2,
|
|
NPCID.CultistDragonBody3,
|
|
NPCID.CultistDragonBody4,
|
|
NPCID.CultistDragonTail,
|
|
NPCID.BloodEelBody,
|
|
NPCID.BloodEelTail,
|
|
NPCID.AncientDoom
|
|
];
|
|
}
|
|
|
|
public override void Unload() => List = null;
|
|
|
|
public static bool Includes(int npcType) => List.Contains(npcType);
|
|
}
|
|
}
|