From 80764534f9afc2ff3f0401f1fa3e20e2e8fc79a8 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 9 Jun 2020 13:55:44 -0400 Subject: [PATCH] added confusion to a few more enemies --- NPCs/Crags/CalamityEye.cs | 1 + NPCs/Crags/CultistAssassin.cs | 1 + NPCs/Crags/DespairStone.cs | 1 + NPCs/NormalNPCs/Sunskater.cs | 3 --- NPCs/SunkenSea/Clam.cs | 3 ++- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NPCs/Crags/CalamityEye.cs b/NPCs/Crags/CalamityEye.cs index d722c6aab9..bebda2e086 100644 --- a/NPCs/Crags/CalamityEye.cs +++ b/NPCs/Crags/CalamityEye.cs @@ -40,6 +40,7 @@ namespace CalamityMod.NPCs.Crags } banner = npc.type; bannerItem = ModContent.ItemType(); + npc.buffImmune[BuffID.Confused] = false; } public override void AI() diff --git a/NPCs/Crags/CultistAssassin.cs b/NPCs/Crags/CultistAssassin.cs index 80e2e64afc..24c7f826ca 100644 --- a/NPCs/Crags/CultistAssassin.cs +++ b/NPCs/Crags/CultistAssassin.cs @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Crags } banner = npc.type; bannerItem = ModContent.ItemType(); + npc.buffImmune[BuffID.Confused] = false; } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/NPCs/Crags/DespairStone.cs b/NPCs/Crags/DespairStone.cs index 6d8934884c..251247e904 100644 --- a/NPCs/Crags/DespairStone.cs +++ b/NPCs/Crags/DespairStone.cs @@ -40,6 +40,7 @@ namespace CalamityMod.NPCs.Crags } banner = npc.type; bannerItem = ModContent.ItemType(); + npc.buffImmune[BuffID.Confused] = false; } public override void AI() diff --git a/NPCs/NormalNPCs/Sunskater.cs b/NPCs/NormalNPCs/Sunskater.cs index 7258ed5d3e..3f8a47f067 100644 --- a/NPCs/NormalNPCs/Sunskater.cs +++ b/NPCs/NormalNPCs/Sunskater.cs @@ -98,7 +98,6 @@ namespace CalamityMod.NPCs.NormalNPCs } if (flag14) { - npc.buffImmune[BuffID.Confused] = false; npc.TargetClosest(true); npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.15f; npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f; @@ -107,8 +106,6 @@ namespace CalamityMod.NPCs.NormalNPCs } else { - //It spazzes out real badly if confused while passive - npc.buffImmune[BuffID.Confused] = true; npc.velocity.X += (float)npc.direction * 0.1f; if (npc.velocity.X < -2f || npc.velocity.X > 2f) { diff --git a/NPCs/SunkenSea/Clam.cs b/NPCs/SunkenSea/Clam.cs index 6a8fa5d317..c2f850bc6d 100644 --- a/NPCs/SunkenSea/Clam.cs +++ b/NPCs/SunkenSea/Clam.cs @@ -74,6 +74,7 @@ namespace CalamityMod.NPCs.SunkenSea { if (!statChange) { + npc.buffImmune[BuffID.Confused] = false; npc.defense = 6; npc.damage = Main.expertMode ? 60 : 30; if (Main.hardMode) @@ -108,7 +109,7 @@ namespace CalamityMod.NPCs.SunkenSea } if (npc.ai[2] < (float)num321) { - npc.velocity.X = npc.velocity.X * 0.9f; + npc.velocity.X *= 0.9f; return; } npc.ai[2] = 0f;