mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Merge pull request #10335 from VOREStation/Arokha/dels
Various qdel helpers
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user