Some spawn removals and other assorted code cleanup

This commit is contained in:
SteelSlayer
2020-08-07 08:55:34 -05:00
parent 12c031760a
commit d928635393
23 changed files with 92 additions and 150 deletions
+6 -16
View File
@@ -38,8 +38,7 @@
O.rename_self("AI",1)
spawn()
qdel(src)
INVOKE_ASYNC(GLOBAL_PROC, .proc/qdel, src) // To prevent the proc from returning null.
return O
@@ -92,8 +91,7 @@
O.Namepick()
spawn(0)//To prevent the proc from returning null.
qdel(src)
INVOKE_ASYNC(GLOBAL_PROC, .proc/qdel, src) // To prevent the proc from returning null.
return O
//human -> alien
@@ -125,9 +123,7 @@
to_chat(new_xeno, "<B>You are now an alien.</B>")
new_xeno.update_pipe_vision()
spawn(0)//To prevent the proc from returning null.
qdel(src)
return
qdel(src)
/mob/living/carbon/human/proc/slimeize(reproduce as num)
if(notransform)
@@ -180,9 +176,7 @@
to_chat(new_corgi, "<B>You are now a Corgi. Yap Yap!</B>")
new_corgi.update_pipe_vision()
spawn(0)//To prevent the proc from returning null.
qdel(src)
return
qdel(src)
/mob/living/carbon/human/Animalize()
@@ -211,9 +205,7 @@
to_chat(new_mob, "You suddenly feel more... animalistic.")
new_mob.update_pipe_vision()
spawn()
qdel(src)
return
qdel(src)
/mob/proc/Animalize()
@@ -254,9 +246,7 @@
to_chat(pai, "<B>You have become a pAI! Your name is [pai.name].</B>")
pai.update_pipe_vision()
spawn(0)//To prevent the proc from returning null.
qdel(src)
return
qdel(src)
/mob/proc/safe_respawn(var/MP)
if(!MP)