From aebf4c2d590dc4f81682a1397125d13792bde3e6 Mon Sep 17 00:00:00 2001 From: Edward Stuckey Date: Mon, 4 Nov 2024 05:52:53 -0500 Subject: [PATCH] Fix inaccuracy with curly boss bullet (#281) This should not move on the first tick. Also in vanilla, the projectile makes a movement before dissipating from hitting the wall. --- src/game/npc/ai/curly.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/npc/ai/curly.rs b/src/game/npc/ai/curly.rs index f517631..de7effb 100644 --- a/src/game/npc/ai/curly.rs +++ b/src/game/npc/ai/curly.rs @@ -296,6 +296,9 @@ impl NPC { } self.anim_rect = state.constants.npc.n123_curly_boss_bullet[self.direction as usize]; + } else { + self.x += self.vel_x; + self.y += self.vel_y; } if match self.direction { @@ -312,8 +315,6 @@ impl NPC { return Ok(()); } - self.x += self.vel_x; - self.y += self.vel_y; Ok(()) }