makes nuke and grav gen properly destroy when zapped

This commit is contained in:
PKPenguin321
2016-08-27 15:20:25 -07:00
parent 08ecbf63ee
commit 58f43daee3
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -36,6 +36,11 @@ var/const/GRAV_NEEDS_WRENCH = 3
if(prob(20))
set_broken()
/obj/machinery/gravity_generator/tesla_act(var/power)
..()
set_broken()
qdel(src)//like the singulo, tesla deletes it. stops it from exploding over and over
/obj/machinery/gravity_generator/update_icon()
..()
icon_state = "[get_status()]_[sprite_number]"