1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-22 05:33:02 +00:00

fix missing muscle doctor action and sue teleport sound

This commit is contained in:
Sallai József 2022-08-14 16:49:11 +03:00
parent b1d578c0b4
commit 8c70e1a13d
2 changed files with 11 additions and 0 deletions

View file

@ -929,6 +929,16 @@ impl NPC {
self.face_player(player);
}
}
501 => {
self.anim_num = 9;
self.action_counter += 1;
if self.action_counter / 2 % 2 != 0 {
self.x = self.target_x;
} else {
self.x = self.x.wrapping_add(0x200);
}
}
510 | 511 => {
if self.action_num == 510 {
self.action_num = 511;

View file

@ -291,6 +291,7 @@ impl NPC {
self.anim_counter = 0;
self.x += 0xc00;
self.target_x = self.x;
state.sound_manager.play_sfx(29);
}
self.action_counter += 1;