From fe7bafcbcecca8ff24cff0e7c1a4e406f956b13f Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 8 Jan 2022 21:05:14 -0600 Subject: [PATCH] Acid Eel and Cragmaw collision problems --- NPCs/AcidRain/AcidEel.cs | 3 +++ NPCs/AcidRain/CragmawMire.cs | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/NPCs/AcidRain/AcidEel.cs b/NPCs/AcidRain/AcidEel.cs index 78f57f12c5..d8c95cbaa6 100644 --- a/NPCs/AcidRain/AcidEel.cs +++ b/NPCs/AcidRain/AcidEel.cs @@ -66,6 +66,9 @@ namespace CalamityMod.NPCs.AcidRain { npc.TargetClosest(false); + // Fall through platforms. + npc.Calamity().ShouldFallThroughPlatforms = true; + // Play a slither sound from time to time. if (Main.rand.NextBool(480)) Main.PlaySound(SoundID.Zombie, npc.Center, 32); diff --git a/NPCs/AcidRain/CragmawMire.cs b/NPCs/AcidRain/CragmawMire.cs index 73c61b3720..31e85d7743 100644 --- a/NPCs/AcidRain/CragmawMire.cs +++ b/NPCs/AcidRain/CragmawMire.cs @@ -82,11 +82,11 @@ namespace CalamityMod.NPCs.AcidRain npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - npc.Calamity().VulnerableToHeat = false; - npc.Calamity().VulnerableToSickness = false; - npc.Calamity().VulnerableToElectricity = true; - npc.Calamity().VulnerableToWater = false; - } + npc.Calamity().VulnerableToHeat = false; + npc.Calamity().VulnerableToSickness = false; + npc.Calamity().VulnerableToElectricity = true; + npc.Calamity().VulnerableToWater = false; + } public override void AI() { @@ -266,7 +266,7 @@ namespace CalamityMod.NPCs.AcidRain // Register ground collision from the slam. // Once it has been hit a nuke explosion projectile is created on the ground, along with homing nuclear drops. - if ((npc.Bottom.Y > Target.Bottom.Y && Collision.SolidCollision(npc.Bottom, 1, 1)) || AttackTimer > 180f) + if ((npc.Bottom.Y > Target.Bottom.Y && Collision.SolidCollision(npc.BottomLeft, npc.width, 1)) || AttackTimer > 180f) { npc.velocity = Vector2.Zero;