1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-29 00:32:51 +00:00

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

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)?;