up port muffle items (#17380)

* up port muffle items

* fix that

* Update exonet_node.dm

* fix that...
This commit is contained in:
Kashargul
2025-03-20 16:00:47 +01:00
committed by GitHub
parent d9810f0cdb
commit bfac760d70
5 changed files with 16 additions and 15 deletions
@@ -28,7 +28,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)
*/
@@ -237,7 +237,9 @@
/obj/item/storage/proc/open(mob/user as mob)
if (use_sound)
playsound(src, src.use_sound, 50, 0, -5)
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)
orient2hud(user)
if(user.s_active)