Closet Teleporter Cooldown (#11506)

This commit is contained in:
Geeves
2021-03-25 19:53:22 -03:00
committed by GitHub
parent 943b66b38c
commit beb56c17a7
2 changed files with 10 additions and 1 deletions
@@ -155,9 +155,12 @@
if(linked_teleporter)
if(linked_teleporter.last_use + 600 > world.time)
return
var/did_teleport = FALSE
for(var/mob/M in contents)
did_teleport = TRUE
linked_teleporter.do_teleport(M)
linked_teleporter.last_use = world.time
if(did_teleport)
linked_teleporter.last_use = world.time
playsound(get_turf(src), close_sound, 25, 0, -3)
density = initial(density)