From bf42990e1b42f375cd9b0b73bf8a40c79d604af6 Mon Sep 17 00:00:00 2001 From: TullyBurnalot Date: Sat, 16 Jul 2016 18:05:42 +0100 Subject: [PATCH] - 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 --- code/game/machinery/computer/aifixer.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index 24351c58921..ab72c5bf7a8 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -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, "The screws on [name]'s screen won't budge.") + return + else + to_chat(user, "The screws on [name]'s screen won't budge and it emits a warning beep!.") + return + else ..() /obj/machinery/computer/aifixer/attack_ai(var/mob/user as mob)