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:
parent
97d85aa841
commit
aebf4c2d59
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue