- Fixes explosions and AI Fixers

- AI Fixer cannot be screwdrivered if it's normal, or has no power
- AI Fixer can be screwdrivered if it's broken via an explosion with an
AI inside. This, of course, kills the AI
This commit is contained in:
TullyBurnalot
2016-07-16 18:05:42 +01:00
parent 2ca5a17c5a
commit bf42990e1b
+10
View File
@@ -11,6 +11,16 @@
light_color = LIGHT_COLOR_PURPLE
/obj/machinery/computer/aifixer/attackby(I as obj, user as mob, params)
if(occupant && istype(I, /obj/item/weapon/screwdriver))
if(stat & BROKEN)
..()
if(stat & NOPOWER)
to_chat(user, "<span class='warning'>The screws on [name]'s screen won't budge.</span>")
return
else
to_chat(user, "<span class='warning'>The screws on [name]'s screen won't budge and it emits a warning beep!.</span>")
return
else
..()
/obj/machinery/computer/aifixer/attack_ai(var/mob/user as mob)