From c85ef5566b2aef7194813b60a278c9984eaae2c6 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Mon, 29 Jul 2024 20:32:54 -0700 Subject: [PATCH] baby ghost bell movement tweaks --- NPCs/SunkenSea/BabyGhostBell.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/NPCs/SunkenSea/BabyGhostBell.cs b/NPCs/SunkenSea/BabyGhostBell.cs index fc4c432e33..6b73caa460 100644 --- a/NPCs/SunkenSea/BabyGhostBell.cs +++ b/NPCs/SunkenSea/BabyGhostBell.cs @@ -177,11 +177,9 @@ namespace CalamityMod.NPCs.SunkenSea if (NPC.wet) { NPC.height = (int)(36 * NPC.scale); - if (NPC.velocity.Length() < 0.25f) + if (NPC.velocity.Length() < 1f) { - Vector2 direction = Main.rand.NextVector2Circular(30, 30); - direction.Normalize(); - NPC.velocity = direction * 4; + NPC.velocity = Main.rand.NextVector2CircularEdge(8, 8); } NPC.velocity *= 0.95f; NPC.rotation = MathHelper.Lerp(NPC.rotation, NPC.velocity.ToRotation() + MathHelper.PiOver2, 0.5f);