mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Makes Xenobio Related Things GC Better (#12558)
This commit is contained in:
committed by
variableundefined
parent
12994cf501
commit
6ceb3a8654
@@ -29,8 +29,10 @@ GLOBAL_LIST_EMPTY(monkey_recyclers)
|
||||
|
||||
/obj/machinery/monkey_recycler/Destroy()
|
||||
GLOB.monkey_recyclers -= src
|
||||
for(var/obj/machinery/computer/camera_advanced/xenobio/console in connected)
|
||||
for(var/thing in connected)
|
||||
var/obj/machinery/computer/camera_advanced/xenobio/console = thing
|
||||
console.connected_recycler = null
|
||||
connected.Cut()
|
||||
return ..()
|
||||
|
||||
/obj/machinery/monkey_recycler/RefreshParts()
|
||||
|
||||
@@ -97,9 +97,10 @@
|
||||
for(var/A in actions)
|
||||
var/datum/action/AC = A
|
||||
AC.Remove(src)
|
||||
for(var/obj/machinery/computer/camera_advanced/xenobio/X in GLOB.machines)
|
||||
if(src in X.stored_slimes)
|
||||
X.stored_slimes -= src
|
||||
Target = null
|
||||
Leader = null
|
||||
Friends.Cut()
|
||||
speech_buffer.Cut()
|
||||
return ..()
|
||||
|
||||
/mob/living/simple_animal/slime/proc/set_colour(new_colour)
|
||||
|
||||
@@ -48,9 +48,20 @@
|
||||
|
||||
/obj/machinery/computer/camera_advanced/xenobio/Destroy()
|
||||
QDEL_NULL(current_potion)
|
||||
for(var/mob/living/simple_animal/slime/S in stored_slimes)
|
||||
for(var/thing in stored_slimes)
|
||||
var/mob/living/simple_animal/slime/S = thing
|
||||
S.forceMove(drop_location())
|
||||
stored_slimes.Cut()
|
||||
if(connected_recycler)
|
||||
connected_recycler.connected -= src
|
||||
connected_recycler = null
|
||||
return ..()
|
||||
|
||||
/obj/machinery/computer/camera_advanced/xenobio/handle_atom_del(atom/A)
|
||||
if(A == current_potion)
|
||||
current_potion = null
|
||||
if(A in stored_slimes)
|
||||
stored_slimes -= A
|
||||
return ..()
|
||||
|
||||
/obj/machinery/computer/camera_advanced/xenobio/CreateEye()
|
||||
|
||||
Reference in New Issue
Block a user