fixes container open sounds (#6883)

This commit is contained in:
Seris02
2023-08-29 17:30:48 +02:00
committed by GitHub
parent dc189c0b16
commit 6e75622dde
@@ -237,14 +237,11 @@
/obj/item/weapon/storage/proc/open(mob/user as mob)
if (use_sound)
// Chomp edit
if(isbelly(user.loc))
var/obj/belly/B = user.loc
if(B.mode_flags & DM_FLAG_MUFFLEITEMS)
// Do nothing
else
playsound(src, src.use_sound, 50, 0, -5)
// Chomp edit end
//CHOMPStation Edit
var/obj/belly/B = user.loc
if(!isbelly(B) || !(B.mode_flags & DM_FLAG_MUFFLEITEMS))
playsound(src, src.use_sound, 50, 0, -5)
//CHOMPStation Edit end
orient2hud(user)
if(user.s_active)