play get item sfx on AM+

This commit is contained in:
József Sallai 2022-10-10 10:44:51 +03:00
parent 8ebe210105
commit 6607d2fc15
1 changed files with 2 additions and 0 deletions

View File

@ -1596,6 +1596,8 @@ impl TextScriptVM {
state.textscript_vm.numbers[0] = max_ammo;
if let Some(wtype) = weapon_type {
state.sound_manager.play_sfx(38);
game_scene.inventory_player1.add_weapon(wtype, max_ammo);
game_scene.inventory_player2.add_weapon(wtype, max_ammo);
state.mod_requirements.append_weapon(ctx, weapon_id as u16)?;