[MIRROR] up port muffle items (#10476)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-21 00:49:01 +01:00
committed by GitHub
co-authored by Kashargul
parent f601906363
commit b25441e2b0
4 changed files with 17 additions and 17 deletions
@@ -36,7 +36,12 @@
/*
/obj/item/storage/backpack/dropped(mob/user)
if (loc == user && src.use_sound)
playsound(src, src.use_sound, 50, 1, -5)
if(isbelly(user.loc))
var/obj/belly/B = user.loc
if(B.mode_flags & DM_FLAG_MUFFLEITEMS)
return
else
playsound(src, src.use_sound, 50, 1, -5)
..(user)
*/
@@ -238,11 +238,9 @@
/obj/item/storage/proc/open(mob/user as mob)
if (use_sound)
//CHOMPStation Edit
var/obj/belly/B = user.loc
if(isliving(user) && (!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)