mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
fixes container open sounds (#6883)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user