mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-10 04:57:02 +00:00
make <2MV not generate smoke if other player is hidden
This commit is contained in:
parent
ba582882cc
commit
5ce0e1d67d
|
@ -1284,15 +1284,17 @@ impl TextScriptVM {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut npc = NPC::create(4, &state.npc_table);
|
if partner.cond.alive() && !partner.cond.hidden() {
|
||||||
npc.cond.set_alive(true);
|
let mut npc = NPC::create(4, &state.npc_table);
|
||||||
npc.x = partner.x;
|
npc.cond.set_alive(true);
|
||||||
npc.y = partner.y;
|
npc.x = partner.x;
|
||||||
|
npc.y = partner.y;
|
||||||
|
|
||||||
let _ = game_scene.npc_list.spawn(0x100, npc.clone());
|
let _ = game_scene.npc_list.spawn(0x100, npc.clone());
|
||||||
let _ = game_scene.npc_list.spawn(0x100, npc.clone());
|
let _ = game_scene.npc_list.spawn(0x100, npc.clone());
|
||||||
let _ = game_scene.npc_list.spawn(0x100, npc.clone());
|
let _ = game_scene.npc_list.spawn(0x100, npc.clone());
|
||||||
let _ = game_scene.npc_list.spawn(0x100, npc);
|
let _ = game_scene.npc_list.spawn(0x100, npc);
|
||||||
|
}
|
||||||
|
|
||||||
exec_state = TextScriptExecutionState::Running(event, cursor.position() as u32);
|
exec_state = TextScriptExecutionState::Running(event, cursor.position() as u32);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue