(restores) CLONG CLONG (#17336)

This commit is contained in:
Luc
2022-01-18 12:43:08 -05:00
committed by GitHub
parent 1b8ae3c713
commit f85420ec01
+7 -7
View File
@@ -640,22 +640,22 @@
// called when player tries to move while in a pipe
/obj/structure/disposalholder/relaymove(mob/user as mob)
if(!istype(user,/mob/living))
/obj/structure/disposalholder/relaymove(mob/user)
if(!istype(user, /mob/living))
return
var/mob/living/U = user
if(U.stat || U.last_special <= world.time)
if(U.stat || world.time <= U.last_special)
return
U.last_special = world.time+100
U.last_special = world.time + 100
if(src.loc)
for(var/mob/M in hearers(src.loc.loc))
if(loc)
for(var/mob/M in hearers(loc.loc))
to_chat(M, "<FONT size=[max(0, 5 - get_dist(src, M))]>CLONG, clong!</FONT>")
playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0)
playsound(loc, 'sound/effects/clang.ogg', 50, 0, 0)
// called to vent all gas in holder to a location
/obj/structure/disposalholder/proc/vent_gas(atom/location)