mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-10-31 19:44:20 +00:00
Some changes to creating smoke when save point spawned in a shelter
This commit is contained in:
parent
40767c021b
commit
9e09d56b76
|
@ -195,10 +195,8 @@ impl NPC {
|
||||||
if self.direction == Direction::Right {
|
if self.direction == Direction::Right {
|
||||||
self.npc_flags.set_interactable(false);
|
self.npc_flags.set_interactable(false);
|
||||||
self.vel_y = -0x200;
|
self.vel_y = -0x200;
|
||||||
}
|
|
||||||
|
|
||||||
//Creates smoke when spawned in a shelter
|
//Creates smoke when spawned in a shelter
|
||||||
if state.get_flag(523) {
|
|
||||||
npc_list.create_death_smoke(self.x, self.y, self.display_bounds.right as usize, 3, state, &self.rng);
|
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;
|
self.action_num = 1;
|
||||||
|
|
||||||
//Creates smoke when spawned in a shelter
|
//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);
|
npc_list.create_death_smoke(self.x, self.y, self.display_bounds.right as usize, 3, state, &self.rng);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue