mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-25 15:03:34 +00:00
play get item sfx on AM+
This commit is contained in:
parent
8ebe210105
commit
6607d2fc15
|
@ -1596,6 +1596,8 @@ impl TextScriptVM {
|
||||||
state.textscript_vm.numbers[0] = max_ammo;
|
state.textscript_vm.numbers[0] = max_ammo;
|
||||||
|
|
||||||
if let Some(wtype) = weapon_type {
|
if let Some(wtype) = weapon_type {
|
||||||
|
state.sound_manager.play_sfx(38);
|
||||||
|
|
||||||
game_scene.inventory_player1.add_weapon(wtype, max_ammo);
|
game_scene.inventory_player1.add_weapon(wtype, max_ammo);
|
||||||
game_scene.inventory_player2.add_weapon(wtype, max_ammo);
|
game_scene.inventory_player2.add_weapon(wtype, max_ammo);
|
||||||
state.mod_requirements.append_weapon(ctx, weapon_id as u16)?;
|
state.mod_requirements.append_weapon(ctx, weapon_id as u16)?;
|
||||||
|
|
Loading…
Reference in a new issue