mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-12-01 00:29:58 +00:00
add missing sound in <IT+ opcode
This commit is contained in:
parent
27b5d85da7
commit
4d08158427
|
|
@ -1514,6 +1514,8 @@ impl TextScriptVM {
|
|||
OpCode::ITp => {
|
||||
let item_id = read_cur_varint(&mut cursor)? as u16;
|
||||
|
||||
state.sound_manager.play_sfx(38);
|
||||
|
||||
if !game_scene.inventory_player1.has_item(item_id) {
|
||||
game_scene.inventory_player1.add_item(item_id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue