mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 16:19:36 +01:00
[MIRROR] up port muffle items (#10476)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
f601906363
commit
b25441e2b0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user