Several boss fixes:

- Hive Mind and Perforators only appear on Boss Checklist in worlds of their respective evil
- Fixed Primordial Wyrm not being marked as defeated
- Fixed SCal being able to fire projectiles in the one frame between bros dying and phase transition
This commit is contained in:
CongratsIsTrash committed 2025-10-26 21:20:04 -04:00
1 parent 7752d55e5a
commit d6bd9c6053
3 files changed
+15 -2

No files matched your search

+4
View File
@@ -419,9 +419,11 @@ namespace CalamityMod
string entryName = "HiveMind";
BossChecklistProgressionValues.TryGetValue(entryName, out float order);
int type = NPCType<HiveMind>();
Func<bool> IsCorruption = () => !WorldGen.crimson || Main.drunkWorld;
List<int> collection = new List<int>() { ItemType<HiveMindRelic>(), ItemType<HiveMindTrophy>(), ItemType<HiveMindMask>(), ItemType<LoreHiveMind>(), ItemType<RottingEyeball>(), ItemType<ThankYouPainting>() };
AddBoss(bossChecklist, calamity, entryName, order, DownedHiveMind, type, new Dictionary<string, object>()
{
["availability"] = IsCorruption,
["spawnInfo"] = GetSpawnInfo(entryName),
["despawnMessage"] = GetDespawnMessage(entryName),
["spawnItems"] = ItemType<Teratoma>(),
@@ -435,9 +437,11 @@ namespace CalamityMod
string entryName = "Perforators";
BossChecklistProgressionValues.TryGetValue(entryName, out float order);
int type = NPCType<PerforatorHive>();
Func<bool> IsCrimson = () => WorldGen.crimson || Main.drunkWorld;
List<int> collection = new List<int>() { ItemType<PerforatorsRelic>(), ItemType<PerforatorTrophy>(), ItemType<PerforatorMask>(), ItemType<LorePerforators>(), ItemType<BloodyVein>(), ItemType<ThankYouPainting>() };
AddBoss(bossChecklist, calamity, entryName, order, DownedPerforators, type, new Dictionary<string, object>()
{
["availability"] = IsCrimson,
["displayName"] = GetDisplayName(entryName),
["spawnInfo"] = GetSpawnInfo(entryName),
["despawnMessage"] = GetDespawnMessage(entryName),
@@ -1452,6 +1452,13 @@ namespace CalamityMod.NPCs.PrimordialWyrm
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
public override void OnKill()
{
// Mark Primordial Wyrm as dead
DownedBossSystem.downedPrimordialWyrm = true;
CalamityNetcode.SyncWorld();
}
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
npcLoot.Add(ModContent.ItemType<EidolicWail>());
+4 -2
View File
@@ -2063,6 +2063,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.dontTakeDamage = true;
NPC.chaseable = false;
NPC.damage = 0;
attackPause = 5;
if (!canDespawn)
NPC.velocity *= 0.95f;
@@ -2525,7 +2526,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 8f;
projectileVelocity *= 5f * uDieLul;
int projectileType = gigablast;
Projectile.NewProjectile(NPC.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, gigablastDamage, 0f, Main.myPlayer, 0f, 2f);
if (attackPause == 0)
Projectile.NewProjectile(NPC.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, gigablastDamage, 0f, Main.myPlayer, 0f, 2f);
}
}
@@ -2539,7 +2541,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
}
}
// Previously the 0.4% health threshold transition
// Previously the 40% health threshold transition
if (lifeRatio <= 0.45f && hasSummonedBrothers && (permafrost ? NPC.AnyNPCs(ModContent.NPCType<DevourerofGodsHead>()) : (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) || NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()))) == false)
{
NPC.ai[0] = 1f;