added confusion to a few more enemies

This commit is contained in:
termigator1359 committed 2020-06-09 13:55:44 -04:00
1 parent b4ae9b5622
commit 80764534f9
5 files changed
+5 -4

No files matched your search

+1
View File
@@ -40,6 +40,7 @@ namespace CalamityMod.NPCs.Crags
}
banner = npc.type;
bannerItem = ModContent.ItemType<CalamityEyeBanner>();
npc.buffImmune[BuffID.Confused] = false;
}
public override void AI()
+1
View File
@@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Crags
}
banner = npc.type;
bannerItem = ModContent.ItemType<CultistAssassinBanner>();
npc.buffImmune[BuffID.Confused] = false;
}
public override float SpawnChance(NPCSpawnInfo spawnInfo)
+1
View File
@@ -40,6 +40,7 @@ namespace CalamityMod.NPCs.Crags
}
banner = npc.type;
bannerItem = ModContent.ItemType<DespairStoneBanner>();
npc.buffImmune[BuffID.Confused] = false;
}
public override void AI()
-3
View File
@@ -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)
{
+2 -1
View File
@@ -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;