Del The World: Unit testing for hard deletes (#59612)

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
LemonInTheDark
2021-08-15 21:09:26 -07:00
committed by GitHub
co-authored by SteelSlayer
parent 0304206af3
commit cd576ab519
91 changed files with 788 additions and 168 deletions
+8 -7
View File
@@ -256,17 +256,18 @@
if(malfai && operating)
malfai.malf_picker.processing_time = clamp(malfai.malf_picker.processing_time - 10,0,1000)
area.power_light = FALSE
area.power_equip = FALSE
area.power_environ = FALSE
area.power_change()
if(area)
area.power_light = FALSE
area.power_equip = FALSE
area.power_environ = FALSE
area.power_change()
QDEL_NULL(alarm_manager)
if(occupier)
malfvacate(1)
qdel(wires)
wires = null
if(wires)
QDEL_NULL(wires)
if(cell)
qdel(cell)
QDEL_NULL(cell)
if(terminal)
disconnect_terminal()
. = ..()
@@ -29,8 +29,12 @@
AddElement(/datum/element/connect_loc, loc_connections)
/obj/machinery/field/containment/Destroy()
field_gen_1.fields -= src
field_gen_2.fields -= src
if(field_gen_1)
field_gen_1.fields -= src
field_gen_1 = null
if(field_gen_2)
field_gen_2.fields -= src
field_gen_2 = null
CanAtmosPass = ATMOS_PASS_YES
air_update_turf(TRUE, FALSE)
return ..()