Merge pull request #10335 from VOREStation/Arokha/dels

Various qdel helpers
This commit is contained in:
Aronai Sieyes
2021-05-20 15:04:37 -04:00
committed by GitHub
8 changed files with 32 additions and 8 deletions
+2
View File
@@ -42,6 +42,8 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image
sight |= SEE_TURFS
player_list |= src
created_for = ckey
new_player_panel()
spawn(40)
if(client)
+4
View File
@@ -7,6 +7,10 @@
my_client = null
..()
if(created_for)
del_mannequin(created_for)
if(!spawning)//Here so that if they are spawning and log out, the other procs can play out and they will have a mob to come back to.
key = null//We null their key before deleting the mob, so they are properly kicked out.
qdel(src)
@@ -17,6 +17,8 @@
anchored = 1 // don't get pushed around
var/created_for
/mob/new_player/New()
mob_list += src
initialized = TRUE // Explicitly don't use Initialize(). New players join super early and use New()
+6 -1
View File
@@ -105,7 +105,12 @@
while(null in owner.organs)
owner.organs -= null
implants.Cut() //VOREStation Add - Remove these too!
for(var/imp in implants)
var/obj/item/weapon/implant/I = imp
if(!istype(I))
continue
I.imp_in = I.part = null
implants.Cut()
return ..()