1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-12-01 08:37:23 +00:00

add missing sound in <IT+ opcode

This commit is contained in:
Alula 2021-04-28 22:33:28 +02:00
parent 27b5d85da7
commit 4d08158427
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -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);
}