[MIRROR] Removes some simple sleeps (#11527)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-29 14:49:16 -07:00
committed by GitHub
parent 794f2649b6
commit 8d29707485
11 changed files with 18 additions and 34 deletions

View File

@@ -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()