mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-16 10:52:44 +00:00
Fixed falling block spawn trigger
This commit is contained in:
parent
7db42e86e6
commit
9b3e2837b7
|
@ -2115,11 +2115,13 @@ impl NPC {
|
||||||
) -> GameResult {
|
) -> GameResult {
|
||||||
match self.action_num {
|
match self.action_num {
|
||||||
0 => {
|
0 => {
|
||||||
if self.x < (stage.map.width as i32 - 6) * state.tile_size.as_int() * 0x200 {
|
for player in players {
|
||||||
|
if player.x < (stage.map.width as i32 - 6) * state.tile_size.as_int() * 0x200 {
|
||||||
self.action_num = 1;
|
self.action_num = 1;
|
||||||
self.action_counter = 0;
|
self.action_counter = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
1 => {
|
1 => {
|
||||||
self.action_counter += 1;
|
self.action_counter += 1;
|
||||||
let player = &players[0];
|
let player = &players[0];
|
||||||
|
|
Loading…
Reference in a new issue