qdel and Destroy() improvements, now done through objects/items/devices

This commit is contained in:
d3athrow
2014-03-05 20:28:17 -05:00
committed by ZomgPonies
parent 19d339c45d
commit 4f168d8caf
10 changed files with 64 additions and 13 deletions
+9 -1
View File
@@ -90,6 +90,14 @@
if(powernet)
powernet.cut_cable(src) // update the powernets
cable_list -= src
if(istype(attached))
attached.SetLuminosity(0)
attached.icon_state = "powersink0"
attached.mode = 0
processing_objects.Remove(attached)
attached.anchored = 0
attached.attached = null
attached = null
..() // then go ahead and delete the cable
/obj/structure/cable/hide(var/i)
@@ -623,4 +631,4 @@ obj/structure/cable/proc/cableColor(var/colorC)
else
user << "Nothing to fix!"
else
return ..()
return ..()