mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Removes some simple sleeps (#11527)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
794f2649b6
commit
8d29707485
@@ -817,16 +817,15 @@ About the new airlock wires panel:
|
||||
// The preceding comment was borrowed from the grille's shock script
|
||||
/obj/machinery/door/airlock/shock(mob/user, prb)
|
||||
if(!arePowerSystemsOn())
|
||||
return 0
|
||||
return FALSE
|
||||
if(hasShocked)
|
||||
return 0 //Already shocked someone recently?
|
||||
return FALSE //Already shocked someone recently?
|
||||
if(..())
|
||||
hasShocked = 1
|
||||
sleep(10)
|
||||
hasShocked = 0
|
||||
return 1
|
||||
VARSET_IN(src, hasShocked, FALSE, 1 SECOND)
|
||||
return TRUE
|
||||
else
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
|
||||
/obj/machinery/door/airlock/update_icon()
|
||||
|
||||
Reference in New Issue
Block a user