Streamlined BR's NPC deletion stuff

This commit is contained in:
Dominic authored and Cameron Ewell committed 2021-08-08 22:56:35 -04:00
1 parent 0fd2e63bf6
commit f3bead5190
2 files changed
+108 -461

No files matched your search

+102 -42
View File
@@ -14,6 +14,7 @@ using CalamityMod.NPCs.DesertScourge;
using CalamityMod.NPCs.DevourerofGods;
using CalamityMod.NPCs.HiveMind;
using CalamityMod.NPCs.Leviathan;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.OldDuke;
using CalamityMod.NPCs.Perforator;
using CalamityMod.NPCs.PlaguebringerGoliath;
@@ -52,22 +53,28 @@ namespace CalamityMod.Events
public bool UsesSpecialSound;
public TimeChangeContext ToChangeTimeTo;
public OnSpawnContext SpawnContext;
public List<int> HostileNPCsToNotDelete;
public delegate void OnSpawnContext(int type);
public Boss(int id, TimeChangeContext toChangeTimeTo = TimeChangeContext.None, OnSpawnContext spawnContext = null, int specialSpawnCountdown = -1, bool usesSpecialSound = false)
public Boss(int id, TimeChangeContext toChangeTimeTo = TimeChangeContext.None, OnSpawnContext spawnContext = null, int specialSpawnCountdown = -1, bool usesSpecialSound = false, params int[] permittedNPCs)
{
// Default to a typical SpawnOnPlayer call for boss summoning if nothing else is inputted.
if (spawnContext is null)
{
spawnContext = (type) => NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}
EntityID = id;
SpecialSpawnCountdown = specialSpawnCountdown;
UsesSpecialSound = usesSpecialSound;
ToChangeTimeTo = toChangeTimeTo;
SpawnContext = spawnContext;
HostileNPCsToNotDelete = permittedNPCs.ToList();
// Add the NPC type to delete blacklist list by default.
if (!HostileNPCsToNotDelete.Contains(id))
HostileNPCsToNotDelete.Add(id);
if (BossIDsAfterDeath.TryGetValue(id, out int[] deathThings))
HostileNPCsToNotDelete.AddRange(deathThings);
}
}
public static bool BossRushActive = false; // Whether Boss Rush is active or not.
@@ -88,47 +95,70 @@ namespace CalamityMod.Events
Bosses = new List<Boss>()
{
new Boss(NPCID.QueenBee),
new Boss(NPCID.BrainofCthulhu),
new Boss(NPCID.KingSlime),
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night),
new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night),
new Boss(NPCID.BrainofCthulhu, permittedNPCs: NPCID.Creeper),
new Boss(NPCID.KingSlime, permittedNPCs: new int[] { NPCID.BlueSlime, NPCID.YellowSlime, NPCID.PurpleSlime, NPCID.RedSlime, NPCID.GreenSlime, NPCID.RedSlime,
NPCID.IceSlime, NPCID.UmbrellaSlime, NPCID.Pinky, NPCID.SlimeSpiked, NPCID.RainbowSlime, ModContent.NPCType<KingSlimeJewel>() }),
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: NPCID.ServantofCthulhu),
new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeVice, NPCID.PrimeLaser, NPCID.Probe }),
new Boss(NPCID.Golem, TimeChangeContext.Day, type =>
{
int shittyStatueBoss = NPC.NewNPC((int)(Main.player[ClosestPlayerToWorldCenter].position.X + Main.rand.Next(-100, 101)), (int)(Main.player[ClosestPlayerToWorldCenter].position.Y - 400f), type, 1);
Main.npc[shittyStatueBoss].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(shittyStatueBoss);
}),
new Boss(ModContent.NPCType<ProfanedGuardianBoss>(), TimeChangeContext.Day),
new Boss(NPCID.EaterofWorldsHead),
new Boss(ModContent.NPCType<AstrumAureus>(), TimeChangeContext.Night),
new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300),
}, permittedNPCs: new int[] { NPCID.GolemFistLeft, NPCID.GolemFistRight, NPCID.GolemHead, NPCID.GolemHeadFree }),
new Boss(ModContent.NPCType<ProfanedGuardianBoss>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<ProfanedGuardianBoss2>(), ModContent.NPCType<ProfanedGuardianBoss3>() }),
new Boss(NPCID.EaterofWorldsHead, permittedNPCs: new int[] { NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.VileSpit }),
new Boss(ModContent.NPCType<AstrumAureus>(), TimeChangeContext.Night, permittedNPCs: ModContent.NPCType<AureusSpawn>()),
new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300, permittedNPCs: new int[] { NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.Probe }),
new Boss(NPCID.Spazmatism, TimeChangeContext.Night, type =>
{
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Spazmatism);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Retinazer);
}),
new Boss(ModContent.NPCType<Bumblefuck>(), TimeChangeContext.Day),
}, permittedNPCs: NPCID.Retinazer),
new Boss(ModContent.NPCType<Bumblefuck>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Bumblefuck2>(), NPCID.Spazmatism, NPCID.Retinazer }),
new Boss(NPCID.WallofFlesh, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
NPC.SpawnWOF(player.position);
}),
new Boss(ModContent.NPCType<HiveMind>()),
}, permittedNPCs: new int[] { NPCID.WallofFleshEye, NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.TheHungry, NPCID.TheHungryII }),
new Boss(ModContent.NPCType<HiveMind>(), permittedNPCs: new int[] { ModContent.NPCType<DankCreeper>(), ModContent.NPCType<DarkHeart>(), ModContent.NPCType<HiveBlob>(), ModContent.NPCType<HiveBlob2>() }),
new Boss(NPCID.SkeletronHead, TimeChangeContext.Night, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int sans = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[sans].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(sans);
}),
new Boss(ModContent.NPCType<StormWeaverHead>(), TimeChangeContext.Day),
new Boss(ModContent.NPCType<AquaticScourgeHead>()),
}, permittedNPCs: NPCID.SkeletronHand),
new Boss(ModContent.NPCType<StormWeaverHead>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<StormWeaverBody>(), ModContent.NPCType<StormWeaverTail>() }),
new Boss(ModContent.NPCType<AquaticScourgeHead>(), permittedNPCs: new int[] { ModContent.NPCType<AquaticScourgeBody>(), ModContent.NPCType<AquaticScourgeBodyAlt>(),
ModContent.NPCType<AquaticScourgeTail>(), ModContent.NPCType<AquaticParasite>(), ModContent.NPCType<AquaticParasite>(), ModContent.NPCType<AquaticSeekerHead>(),
ModContent.NPCType<AquaticSeekerBody>(), ModContent.NPCType<AquaticSeekerTail>() }),
new Boss(ModContent.NPCType<DesertScourgeHead>(), spawnContext: type =>
{
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHead>());
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHeadSmall>());
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHeadSmall>());
}),
}, permittedNPCs: new int[] { ModContent.NPCType<DesertScourgeBody>(), ModContent.NPCType<DesertScourgeTail>(), ModContent.NPCType<DesertScourgeHeadSmall>(),
ModContent.NPCType<DesertScourgeBodySmall>(), ModContent.NPCType<DesertScourgeTailSmall>(), ModContent.NPCType<DriedSeekerHead>(), ModContent.NPCType<DriedSeekerBody>(),
ModContent.NPCType<DriedSeekerTail>() }),
new Boss(NPCID.CultistBoss, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
@@ -136,7 +166,9 @@ namespace CalamityMod.Events
Main.npc[doctorLooneyTunes].direction = Main.npc[doctorLooneyTunes].spriteDirection = Math.Sign(player.Center.X - player.Center.X - 90f);
Main.npc[doctorLooneyTunes].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(doctorLooneyTunes);
}),
}, permittedNPCs: new int[] { NPCID.CultistBossClone, NPCID.CultistDragonHead, NPCID.CultistDragonBody1, NPCID.CultistDragonBody2, NPCID.CultistDragonBody3, NPCID.CultistDragonBody4,
NPCID.CultistDragonTail, NPCID.AncientCultistSquidhead, NPCID.AncientLight, NPCID.AncientDoom }),
new Boss(ModContent.NPCType<CrabulonIdle>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
@@ -154,13 +186,22 @@ namespace CalamityMod.Events
int thePefectOne = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[thePefectOne].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(thePefectOne);
}, specialSpawnCountdown: 300),
new Boss(NPCID.Plantera),
new Boss(ModContent.NPCType<CeaselessVoid>()),
new Boss(ModContent.NPCType<PerforatorHive>()),
new Boss(ModContent.NPCType<Cryogen>()),
new Boss(ModContent.NPCType<BrimstoneElemental>()),
new Boss(ModContent.NPCType<Signus>(), specialSpawnCountdown: 360),
}, specialSpawnCountdown: 300, permittedNPCs: ModContent.NPCType<CrabShroom>()),
new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }),
new Boss(ModContent.NPCType<CeaselessVoid>(), permittedNPCs: ModContent.NPCType<DarkEnergy>()),
new Boss(ModContent.NPCType<PerforatorHive>(), permittedNPCs: new int[] { ModContent.NPCType<PerforatorHeadLarge>(), ModContent.NPCType<PerforatorBodyLarge>(), ModContent.NPCType<PerforatorTailLarge>(),
ModContent.NPCType<PerforatorHeadMedium>(), ModContent.NPCType<PerforatorBodyMedium>(), ModContent.NPCType<PerforatorTailMedium>(), ModContent.NPCType<PerforatorHeadSmall>(),
ModContent.NPCType<PerforatorBodySmall>() ,ModContent.NPCType<PerforatorTailSmall>() }),
new Boss(ModContent.NPCType<Cryogen>(), permittedNPCs: new int[] { ModContent.NPCType<CryogenIce>(), ModContent.NPCType<IceMass>(), ModContent.NPCType<Cryocore>(), ModContent.NPCType<Cryocore2>() }),
new Boss(ModContent.NPCType<BrimstoneElemental>(), permittedNPCs: ModContent.NPCType<Brimling>()),
new Boss(ModContent.NPCType<Signus>(), specialSpawnCountdown: 360, permittedNPCs: new int[] { ModContent.NPCType<CosmicLantern>(), ModContent.NPCType<SignusBomb>() }),
new Boss(ModContent.NPCType<RavagerBody>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
@@ -169,38 +210,53 @@ namespace CalamityMod.Events
int ravager = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[ravager].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(ravager);
}, usesSpecialSound: true),
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<FlamePillar>(), ModContent.NPCType<RockPillar>(), ModContent.NPCType<RavagerLegLeft>(), ModContent.NPCType<RavagerLegRight>(),
ModContent.NPCType<RavagerClawLeft>(), ModContent.NPCType<RavagerClawRight>() }),
new Boss(NPCID.DukeFishron, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int dukeFishron = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[dukeFishron].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(dukeFishron);
}),
}, permittedNPCs: new int[] { NPCID.DetonatingBubble, NPCID.Sharkron, NPCID.Sharkron2 }),
new Boss(NPCID.MoonLordCore, spawnContext: type =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText2", XerocTextColor);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}),
}, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }),
new Boss(ModContent.NPCType<AstrumDeusHeadSpectral>(), TimeChangeContext.Night, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
Main.PlaySound(CalamityMod.Instance.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AstrumDeusSpawn"), player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true),
new Boss(ModContent.NPCType<Polterghast>(), TimeChangeContext.Day),
new Boss(ModContent.NPCType<PlaguebringerGoliath>()),
new Boss(ModContent.NPCType<Calamitas>(), TimeChangeContext.Night, specialSpawnCountdown: 420),
new Boss(ModContent.NPCType<Siren>(), TimeChangeContext.Day),
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<AstrumDeusBodySpectral>(), ModContent.NPCType<AstrumDeusTailSpectral>() }),
new Boss(ModContent.NPCType<Polterghast>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<PhantomFuckYou>(), ModContent.NPCType<PolterghastHook>(), ModContent.NPCType<PolterPhantom>() }),
new Boss(ModContent.NPCType<PlaguebringerGoliath>(), permittedNPCs: new int[] { ModContent.NPCType<PlagueBeeG>(), ModContent.NPCType<PlagueBeeLargeG>(), ModContent.NPCType<PlagueHomingMissile>(),
ModContent.NPCType<PlagueMine>(), ModContent.NPCType<PlaguebringerShade>() }),
new Boss(ModContent.NPCType<Calamitas>(), TimeChangeContext.Night, specialSpawnCountdown: 420, permittedNPCs: new int[] { ModContent.NPCType<CalamitasRun>(), ModContent.NPCType<CalamitasRun2>(),
ModContent.NPCType<LifeSeeker>(), ModContent.NPCType<SoulSeeker>() }),
new Boss(ModContent.NPCType<Siren>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Leviathan>(), ModContent.NPCType<AquaticAberration>(), ModContent.NPCType<Parasea>(),
ModContent.NPCType<SirenIce>(), NPCID.DetonatingBubble}),
new Boss(ModContent.NPCType<OldDuke>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int boomerDuke = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[boomerDuke].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(boomerDuke);
}),
new Boss(ModContent.NPCType<SlimeGodCore>()),
}, permittedNPCs: new int[] { ModContent.NPCType<OldDukeToothBall>(), ModContent.NPCType<OldDukeSharkron>() }),
new Boss(ModContent.NPCType<SlimeGodCore>(), permittedNPCs: new int[] { ModContent.NPCType<SlimeGod>(), ModContent.NPCType<SlimeGodRun>(), ModContent.NPCType<SlimeGodSplit>(), ModContent.NPCType<SlimeGodRunSplit>(),
ModContent.NPCType<SlimeSpawnCorrupt>(), ModContent.NPCType<SlimeSpawnCorrupt2>(), ModContent.NPCType<SlimeSpawnCrimson>(), ModContent.NPCType<SlimeSpawnCrimson2>() }),
new Boss(ModContent.NPCType<Providence>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
@@ -209,7 +265,8 @@ namespace CalamityMod.Events
int prov = NPC.NewNPC((int)(player.position.X + Main.rand.Next(-500, 501)), (int)(player.position.Y - 250f), type, 1);
Main.npc[prov].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(prov);
}, usesSpecialSound: true),
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<ProvSpawnOffense>(), ModContent.NPCType<ProvSpawnHealer>(), ModContent.NPCType<ProvSpawnDefense>() }),
new Boss(ModContent.NPCType<SupremeCalamitas>(), spawnContext: type =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText2", XerocTextColor);
@@ -224,15 +281,18 @@ namespace CalamityMod.Events
}
Main.PlaySound(CalamityMod.Instance.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SupremeCalamitasSpawn"), Main.player[ClosestPlayerToWorldCenter].Center);
CalamityUtils.SpawnBossBetter(Main.player[ClosestPlayerToWorldCenter].Top - new Vector2(42f, 84f), type);
}),
new Boss(ModContent.NPCType<Yharon>(), TimeChangeContext.Day),
}, permittedNPCs: new int[] { ModContent.NPCType<SCalWormArm>(), ModContent.NPCType<SCalWormHead>(), ModContent.NPCType<SCalWormBodyWeak>(), ModContent.NPCType<SCalWormTail>(),
ModContent.NPCType<SoulSeekerSupreme>(), ModContent.NPCType<BrimstoneHeart>(), ModContent.NPCType<SupremeCataclysm>(), ModContent.NPCType<SupremeCatastrophe>() }),
new Boss(ModContent.NPCType<Yharon>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<DetonatingFlare>(), ModContent.NPCType<DetonatingFlare2>() }),
new Boss(ModContent.NPCType<DevourerofGodsHeadS>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
Main.PlaySound(CalamityMod.Instance.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DevourerSpawn"), player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true)
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<DevourerofGodsBodyS>(), ModContent.NPCType<DevourerofGodsTailS>() })
};
BossIDsAfterDeath = new Dictionary<int, int[]>()
+6 -419
View File
@@ -2826,425 +2826,12 @@ namespace CalamityMod.NPCs
#region Boss Rush Force Despawn Other NPCs
private void BossRushForceDespawnOtherNPCs(NPC npc, Mod mod)
{
switch (BossRushEvent.BossRushStage)
{
case 0:
if (npc.type != NPCID.QueenBee)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 1:
if (npc.type != NPCID.BrainofCthulhu && npc.type != NPCID.Creeper)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 2:
if (npc.type != NPCID.KingSlime && npc.type != NPCID.BlueSlime && npc.type != NPCID.SlimeSpiked && npc.type != NPCType<KingSlimeJewel>() &&
npc.type != NPCID.YellowSlime && npc.type != NPCID.PurpleSlime && npc.type != NPCID.GreenSlime && npc.type != NPCID.RedSlime &&
npc.type != NPCID.IceSlime && npc.type != NPCID.UmbrellaSlime && npc.type != NPCID.RainbowSlime && npc.type != NPCID.Pinky)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 3:
if (npc.type != NPCID.EyeofCthulhu && npc.type != NPCID.ServantofCthulhu)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 4:
if (npc.type != NPCID.SkeletronPrime && npc.type != NPCID.PrimeSaw && npc.type != NPCID.PrimeVice &&
npc.type != NPCID.PrimeCannon && npc.type != NPCID.PrimeLaser && npc.type != NPCID.Probe)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 5:
if (npc.type != NPCID.Golem && npc.type != NPCID.GolemFistLeft && npc.type != NPCID.GolemFistRight &&
npc.type != NPCID.GolemHead && npc.type != NPCID.GolemHeadFree)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 6:
if (npc.type != NPCType<ProfanedGuardianBoss>() && npc.type != NPCType<ProfanedGuardianBoss2>() &&
npc.type != NPCType<ProfanedGuardianBoss3>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 7:
if (!EaterofWorldsIDs.Contains(npc.type) && npc.type != NPCID.VileSpit)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 8:
if (npc.type != NPCType<AstrumAureus.AstrumAureus>() && npc.type != NPCType<AureusSpawn>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 9:
if (!DestroyerIDs.Contains(npc.type) && npc.type != NPCID.Probe)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 10:
if (npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 11:
if (npc.type != NPCType<Bumblefuck>() && npc.type != NPCType<Bumblefuck2>() &&
npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 12:
if (npc.type != NPCID.WallofFlesh && npc.type != NPCID.WallofFleshEye && npc.type != NPCID.TheHungry &&
npc.type != NPCID.TheHungryII && npc.type != NPCID.LeechHead && npc.type != NPCID.LeechBody &&
npc.type != NPCID.LeechTail)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 13:
if (npc.type != NPCType<HiveMind.HiveMind>() && npc.type != NPCType<HiveMindP2>() &&
npc.type != NPCType<DarkHeart>() && npc.type != NPCType<HiveBlob>() &&
npc.type != NPCType<DankCreeper>() && npc.type != NPCType<HiveBlob2>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 14:
if (npc.type != NPCID.SkeletronHead && npc.type != NPCID.SkeletronHand)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 15:
if (npc.type != NPCType<StormWeaverHead>() && npc.type != NPCType<StormWeaverBody>() &&
npc.type != NPCType<StormWeaverTail>() && npc.type != NPCType<StormWeaverHeadNaked>() &&
npc.type != NPCType<StormWeaverBodyNaked>() && npc.type != NPCType<StormWeaverTailNaked>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 16:
if (npc.type != NPCType<AquaticScourgeHead>() && npc.type != NPCType<AquaticScourgeBody>() &&
npc.type != NPCType<AquaticScourgeBodyAlt>() && npc.type != NPCType<AquaticScourgeTail>() &&
npc.type != NPCType<AquaticParasite>() && npc.type != NPCType<AquaticUrchin>() &&
npc.type != NPCType<AquaticSeekerHead>() && npc.type != NPCType<AquaticSeekerBody>() &&
npc.type != NPCType<AquaticSeekerTail>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 17:
if (npc.type != NPCType<DesertScourgeHead>() && npc.type != NPCType<DesertScourgeBody>() &&
npc.type != NPCType<DesertScourgeTail>() && npc.type != NPCType<DesertScourgeHeadSmall>() &&
npc.type != NPCType<DesertScourgeBodySmall>() && npc.type != NPCType<DesertScourgeTailSmall>() &&
npc.type != NPCType<DriedSeekerHead>() && npc.type != NPCType<DriedSeekerBody>() &&
npc.type != NPCType<DriedSeekerTail>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 18:
if (npc.type != NPCID.CultistBoss && npc.type != NPCID.CultistBossClone && npc.type != NPCID.CultistDragonHead &&
npc.type != NPCID.CultistDragonBody1 && npc.type != NPCID.CultistDragonBody2 && npc.type != NPCID.CultistDragonBody3 &&
npc.type != NPCID.CultistDragonBody4 && npc.type != NPCID.CultistDragonTail && npc.type != NPCID.AncientCultistSquidhead &&
npc.type != NPCID.AncientLight && npc.type != NPCID.AncientDoom)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 19:
if (npc.type != NPCType<CrabulonIdle>() && npc.type != NPCType<CrabShroom>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 20:
if (npc.type != NPCID.Plantera && npc.type != NPCID.PlanterasTentacle && npc.type != NPCID.PlanterasHook &&
npc.type != NPCID.Spore)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 21:
if (npc.type != NPCType<CeaselessVoid.CeaselessVoid>() && npc.type != NPCType<DarkEnergy>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 22:
if (npc.type != NPCType<PerforatorHive>() && npc.type != NPCType<PerforatorHeadLarge>() &&
npc.type != NPCType<PerforatorBodyLarge>() && npc.type != NPCType<PerforatorTailLarge>() &&
npc.type != NPCType<PerforatorHeadMedium>() && npc.type != NPCType<PerforatorBodyMedium>() &&
npc.type != NPCType<PerforatorTailMedium>() && npc.type != NPCType<PerforatorHeadSmall>() &&
npc.type != NPCType<PerforatorBodySmall>() && npc.type != NPCType<PerforatorTailSmall>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 23:
if (npc.type != NPCType<Cryogen.Cryogen>() && npc.type != NPCType<CryogenIce>() &&
npc.type != NPCType<IceMass>() && npc.type != NPCType<Cryocore>() &&
npc.type != NPCType<Cryocore2>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 24:
if (npc.type != NPCType<BrimstoneElemental.BrimstoneElemental>() && npc.type != NPCType<Brimling>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 25:
if (npc.type != NPCType<Signus.Signus>() && npc.type != NPCType<SignusBomb>() &&
npc.type != NPCType<CosmicLantern>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 26:
if (npc.type != NPCType<RavagerBody>() && npc.type != NPCType<RavagerHead>() &&
npc.type != NPCType<RavagerClawLeft>() && npc.type != NPCType<RavagerClawRight>() &&
npc.type != NPCType<RavagerLegLeft>() && npc.type != NPCType<RavagerLegRight>() &&
npc.type != NPCType<RavagerHead2>() && npc.type != NPCType<RockPillar>() &&
npc.type != NPCType<FlamePillar>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 27:
if (npc.type != NPCID.DukeFishron && npc.type != NPCID.DetonatingBubble && npc.type != NPCID.Sharkron &&
npc.type != NPCID.Sharkron2)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 28:
if (npc.type != NPCID.MoonLordCore && npc.type != NPCID.MoonLordHead && npc.type != NPCID.MoonLordHand &&
npc.type != NPCID.MoonLordLeechBlob && npc.type != NPCID.MoonLordFreeEye)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 29:
if (!AstrumDeusIDs.Contains(npc.type))
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 30:
if (npc.type != NPCType<Polterghast.Polterghast>() && npc.type != NPCType<PhantomFuckYou>() &&
npc.type != NPCType<PolterghastHook>() && npc.type != NPCType<PolterPhantom>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 31:
if (npc.type != NPCType<PlaguebringerGoliath.PlaguebringerGoliath>() && npc.type != NPCType<PlagueBeeG>() &&
npc.type != NPCType<PlagueBeeLargeG>() && npc.type != NPCType<PlagueHomingMissile>() &&
npc.type != NPCType<PlagueMine>() && npc.type != NPCType<PlaguebringerShade>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 32:
if (npc.type != NPCType<Calamitas.Calamitas>() && npc.type != NPCType<CalamitasRun>() &&
npc.type != NPCType<CalamitasRun2>() && npc.type != NPCType<CalamitasRun3>() &&
npc.type != NPCType<LifeSeeker>() && npc.type != NPCType<SoulSeeker>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 33:
if (npc.type != NPCType<Siren>() && npc.type != NPCType<Leviathan.Leviathan>() &&
npc.type != NPCType<AquaticAberration>() && npc.type != NPCType<Parasea>() &&
npc.type != NPCType<SirenIce>() && npc.type != NPCID.DetonatingBubble)
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 34:
if (npc.type != NPCType<OldDuke.OldDuke>() && npc.type != NPCType<OldDukeSharkron>() &&
npc.type != NPCType<OldDukeToothBall>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 35:
if (npc.type != NPCType<SlimeGod.SlimeGod>() && npc.type != NPCType<SlimeGodRun>() &&
npc.type != NPCType<SlimeGodCore>() && npc.type != NPCType<SlimeGodSplit>() &&
npc.type != NPCType<SlimeGodRunSplit>() && npc.type != NPCType<SlimeSpawnCorrupt>() &&
npc.type != NPCType<SlimeSpawnCorrupt2>() && npc.type != NPCType<SlimeSpawnCrimson>() &&
npc.type != NPCType<SlimeSpawnCrimson2>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 36:
if (npc.type != NPCType<Providence.Providence>() && npc.type != NPCType<ProvSpawnDefense>() &&
npc.type != NPCType<ProvSpawnOffense>() && npc.type != NPCType<ProvSpawnHealer>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 37:
if (npc.type != NPCType<SupremeCalamitas.SupremeCalamitas>() && npc.type != NPCType<SCalWormBody>() &&
npc.type != NPCType<SCalWormBodyWeak>() && npc.type != NPCType<SCalWormHead>() &&
npc.type != NPCType<SCalWormTail>() && npc.type != NPCType<SoulSeekerSupreme>() &&
npc.type != NPCType<BrimstoneHeart>() && npc.type != NPCType<SupremeCataclysm>() &&
npc.type != NPCType<SupremeCatastrophe>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 38:
if (npc.type != NPCType<Yharon.Yharon>() && npc.type != NPCType<DetonatingFlare>() &&
npc.type != NPCType<DetonatingFlare2>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
case 39:
if (npc.type != NPCType<DevourerofGodsHeadS>() && npc.type != NPCType<DevourerofGodsBodyS>() &&
npc.type != NPCType<DevourerofGodsTailS>())
{
npc.active = false;
npc.netUpdate = true;
}
break;
}
}
if (!BossRushEvent.Bosses[BossRushEvent.BossRushStage].HostileNPCsToNotDelete.Contains(npc.type))
{
npc.active = false;
npc.netUpdate = true;
}
}
#endregion
#region Pillar Event Progression Edit