Acid Eel and Cragmaw collision problems

This commit is contained in:
Dominic authored and Cameron Ewell committed 2022-01-17 17:09:47 -05:00
1 parent 3c3e00f1fb
commit fe7bafcbce
2 files changed
+9 -6

No files matched your search

+3
View File
@@ -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);
+6 -6
View File
@@ -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;