mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-29 00:32:51 +00:00
play get item sound on <I+N
This commit is contained in:
parent
f0949f49cf
commit
8ebe210105
|
@ -1564,6 +1564,8 @@ impl TextScriptVM {
|
|||
let item_id = read_cur_varint(&mut cursor)? as u16;
|
||||
let amount = read_cur_varint(&mut cursor)? as u16;
|
||||
|
||||
state.sound_manager.play_sfx(38);
|
||||
|
||||
if game_scene.inventory_player1.has_item_amount(item_id, Ordering::Less, amount) {
|
||||
game_scene.inventory_player1.add_item(item_id);
|
||||
state.mod_requirements.append_item(ctx, item_id)?;
|
||||
|
|
Loading…
Reference in a new issue