More Destroy stuff

This commit is contained in:
d3athrow
2014-03-05 20:28:38 -05:00
committed by ZomgPonies
parent 4f168d8caf
commit dc50b47971
4 changed files with 26 additions and 9 deletions
+8
View File
@@ -62,6 +62,14 @@
process_cooldown()
return 1
Destroy()
if(istype(src.loc, /obj/item/device/assembly_holder) || istype(holder))
var/obj/item/device/assembly_holder/A = src.loc
if(A.a_left == src)
A.a_left = null
else if(A.a_right == src)
A.a_right = null
src.holder = null
pulsed(var/radio = 0)
if(holder && (wires & WIRE_RECEIVE))
+6
View File
@@ -24,6 +24,12 @@
IsAssemblyHolder()
return 1
Destroy()
if(a_left)
a_left.holder = null
if(a_right)
a_right.holder = null
..()
attach(var/obj/item/device/D, var/obj/item/device/D2, var/mob/user)
if((!D)||(!D2)) return 0