mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Del The World: Unit testing for hard deletes (#59612)
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
co-authored by
SteelSlayer
parent
0304206af3
commit
cd576ab519
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user