1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-26 23:33:01 +00:00

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.
This commit is contained in:
Edward Stuckey 2024-11-04 05:52:53 -05:00 committed by GitHub
parent 97d85aa841
commit aebf4c2d59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(())
}