using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.AcidRain; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.NPCs.Bumblebirb; using CalamityMod.NPCs.Calamitas; using CalamityMod.NPCs.CeaselessVoid; using CalamityMod.NPCs.Crabulon; using CalamityMod.NPCs.Cryogen; using CalamityMod.NPCs.DesertScourge; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.NPCs.HiveMind; using CalamityMod.NPCs.GreatSandShark; using CalamityMod.NPCs.Leviathan; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.OldDuke; using CalamityMod.NPCs.Perforator; using CalamityMod.NPCs.PlaguebringerGoliath; using CalamityMod.NPCs.Polterghast; using CalamityMod.NPCs.ProfanedGuardians; using CalamityMod.NPCs.Providence; using CalamityMod.NPCs.Ravager; using CalamityMod.NPCs.Signus; using CalamityMod.NPCs.SlimeGod; using CalamityMod.NPCs.StormWeaver; using CalamityMod.NPCs.SulphurousSea; using CalamityMod.NPCs.SunkenSea; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using System; using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod { public static partial class NPCStats { #region Boss Stats Container Struct internal partial struct BossStats { public static SortedDictionary> DebuffImmunities; }; #endregion #region Stat Retrieval Methods public static void SetNPCDebuffImmunities(this NPC npc) { // Safety check: If for some reason the debuff array is not initialized yet, return and do nothing. // If the npc is not in the dictionary, return and do nothing. // Also, can I just say that I hate Sorted Dictionaries and Tuples and want to make something explode? -Ben var stupidTupleThing = new Tuple(true, new int[] {}); bool exists = BossStats.DebuffImmunities.TryGetValue(npc.type, out stupidTupleThing); if (npc.modNPC is null || !exists) return; // If the npc is immune to everything, make it immune to everything if (stupidTupleThing.Item1) { for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; } } // Then set debuff vulnerabilities, or immunities if not immune to everything for (int i = 0; i < stupidTupleThing.Item2.Length; ++i) { npc.buffImmune[stupidTupleThing.Item2[i]] = !stupidTupleThing.Item1; } } #endregion #region Load/Unload // A static function, called exactly once, which initializes the BossStats struct at a predictable time. // This is necessary to ensure this dictionary is populated as early as possible. internal static void LoadDebuffs() { BossStats.DebuffImmunities = new SortedDictionary> { { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Ichor, BuffID.Oiled, BuffID.OnFire, BuffID.ShadowFlame, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.SoulDrain, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.BoneJavelin, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.Poisoned, BuffID.SoulDrain, BuffID.StardustMinionBleed, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.CursedInferno, BuffID.Ichor, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.CursedInferno, BuffID.Ichor }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.CursedInferno, BuffID.Ichor }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.CursedInferno, BuffID.Ichor }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.CursedInferno, BuffID.Ichor }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, // The struct is called BossStats but we have all the enemies... just something to consider... { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType(), BuffID.Poisoned }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType(), BuffID.Poisoned }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { BuffID.BetsysCurse, BuffID.CursedInferno, BuffID.Daybreak, BuffID.DryadsWardDebuff, BuffID.Frostburn, BuffID.Ichor, BuffID.Oiled, BuffID.StardustMinionBleed, ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire, BuffID.Poisoned, BuffID.ShadowFlame, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.Poisoned }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) }, { ModContent.NPCType(), new Tuple(false, new int[] { ModContent.BuffType() }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.Daybreak }) } }; } // Destroys the BossStats struct to save memory because mod assemblies will not be fully unloaded until TML 1.4. internal static void UnloadDebuffs() { BossStats.DebuffImmunities = null; } #endregion } }