destruction proc, cable deconstruction

This commit is contained in:
Hornygranny
2014-10-31 17:01:28 -07:00
parent 24b6e9c601
commit c29526ee2f
2 changed files with 28 additions and 33 deletions
+8 -5
View File
@@ -1,11 +1,11 @@
obj/structure
/obj/structure
icon = 'icons/obj/structures.dmi'
obj/structure/blob_act()
/obj/structure/blob_act()
if(prob(50))
qdel(src)
obj/structure/ex_act(severity)
/obj/structure/ex_act(severity)
switch(severity)
if(1.0)
qdel(src)
@@ -17,7 +17,10 @@ obj/structure/ex_act(severity)
if(3.0)
return
obj/structure/Destroy()
/obj/structure/Destroy()
if(opacity)
UpdateAffectingLights()
..()
..()
/obj/structure/proc/Deconstruct()
qdel(src)