Fixes harddel causes for various things (#43989)

* hardddel stuff

* mech stuff
This commit is contained in:
vuonojenmustaturska
2019-05-17 08:46:50 +12:00
committed by oranges
parent 85d93d5c4a
commit b14ae1dcf6
3 changed files with 13 additions and 0 deletions
+10
View File
@@ -29,6 +29,11 @@
. = ..()
recharging_turf = get_step(loc, dir)
/obj/machinery/mech_bay_recharge_port/Destroy()
if (recharge_console && recharge_console.recharge_port == src)
recharge_console.recharge_port = null
return ..()
/obj/machinery/mech_bay_recharge_port/RefreshParts()
var/MC
for(var/obj/item/stock_parts/capacitor/C in component_parts)
@@ -135,3 +140,8 @@
/obj/machinery/computer/mech_bay_power_console/Initialize()
. = ..()
reconnect()
/obj/machinery/computer/mech_bay_power_console/Destroy()
if (recharge_port && recharge_port.recharge_console == src)
recharge_port.recharge_console = null
return ..()
+1
View File
@@ -11,6 +11,7 @@
//This must be done first, so the mob ghosts correctly before DNA etc is nulled
. = ..()
QDEL_LIST(hand_bodyparts)
QDEL_LIST(internal_organs)
QDEL_LIST(stomach_contents)
QDEL_LIST(bodyparts)
+2
View File
@@ -35,6 +35,8 @@
GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for the badmin verb for now
/obj/effect/proc_holder/Destroy()
if (action)
qdel(action)
if(ranged_ability_user)
remove_ranged_ability()
return ..()