1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-24 22:52:51 +00:00

Some changes to creating smoke when save point spawned in a shelter

This commit is contained in:
biroder 2023-04-26 18:22:09 +03:00 committed by GitHub
parent 40767c021b
commit 9e09d56b76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,10 +195,8 @@ impl NPC {
if self.direction == Direction::Right {
self.npc_flags.set_interactable(false);
self.vel_y = -0x200;
}
//Creates smoke when spawned in a shelter
if state.get_flag(523) {
//Creates smoke when spawned in a shelter
npc_list.create_death_smoke(self.x, self.y, self.display_bounds.right as usize, 3, state, &self.rng);
}
}
@ -224,7 +222,7 @@ impl NPC {
self.action_num = 1;
//Creates smoke when spawned in a shelter
if state.get_flag(523) {
if self.direction == Direction::Right {
npc_list.create_death_smoke(self.x, self.y, self.display_bounds.right as usize, 3, state, &self.rng);
}
}