converts some spawns into timers (#45429)

* converts spawns into timers

* linter

* change per review
This commit is contained in:
spookydonut
2019-07-29 17:23:15 +08:00
committed by Rob Bailey
parent 714c61c70f
commit 88eca69eb5
35 changed files with 228 additions and 232 deletions
+2 -4
View File
@@ -245,8 +245,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
if(ishuman(M))
log_admin("[key_name(src)] has robotized [M.key].")
var/mob/living/carbon/human/H = M
spawn(0)
H.Robotize()
INVOKE_ASYNC(H, /mob/living/carbon/human.proc/Robotize)
else
alert("Invalid mob")
@@ -283,8 +282,7 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
return
log_admin("[key_name(src)] has animalized [M.key].")
spawn(0)
M.Animalize()
INVOKE_ASYNC(M, /mob.proc/Animalize)
/client/proc/makepAI(turf/T in GLOB.mob_list)