mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-22 10:36:43 +00:00
Fixed falling block spawn trigger
This commit is contained in:
parent
7db42e86e6
commit
9b3e2837b7
|
@ -2115,11 +2115,13 @@ impl NPC {
|
|||
) -> GameResult {
|
||||
match self.action_num {
|
||||
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_counter = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
1 => {
|
||||
self.action_counter += 1;
|
||||
let player = &players[0];
|
||||
|
|
Loading…
Reference in a new issue