From 6607d2fc153d4e1b769d106e1dca9ae3ad2ffbf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20Sallai?= Date: Mon, 10 Oct 2022 10:44:51 +0300 Subject: [PATCH] play get item sfx on AM+ --- src/scripting/tsc/text_script.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripting/tsc/text_script.rs b/src/scripting/tsc/text_script.rs index 6f8227d..b101e77 100644 --- a/src/scripting/tsc/text_script.rs +++ b/src/scripting/tsc/text_script.rs @@ -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)?;