diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index a41fcc019f9..528283098f3 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -1130,17 +1130,26 @@ FIRE ALARM if(wiresexposed) switch(buildstage) if(2) - if (istype(W, /obj/item/device/multitool)) + if(istype(W, /obj/item/device/multitool)) src.detecting = !( src.detecting ) if (src.detecting) user.visible_message("\red [user] has reconnected [src]'s detecting unit!", "You have reconnected [src]'s detecting unit.") else user.visible_message("\red [user] has disconnected [src]'s detecting unit!", "You have disconnected [src]'s detecting unit.") + + else if(istype(W, /obj/item/weapon/wirecutters)) // cutting the wires out + user << "You cut the wires!" + playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1) + var/obj/item/stack/cable_coil/new_coil = new /obj/item/stack/cable_coil() + new_coil.amount = 5 + new_coil.loc = user.loc + buildstage = 1 + update_icon() if(1) if(istype(W, /obj/item/stack/cable_coil)) var/obj/item/stack/cable_coil/coil = W if(coil.amount < 5) - user << "You need more cable for this!" + user << "You cut the wires!" return coil.amount -= 5 @@ -1148,11 +1157,11 @@ FIRE ALARM del(coil) buildstage = 2 - user << "You wire \the [src]!" + user << "You wire \the [src]!" update_icon() else if(istype(W, /obj/item/weapon/crowbar)) - user << "You pry out the circuit!" + user << "You pry out the circuit!" playsound(get_turf(src), 'sound/items/Crowbar.ogg', 50, 1) spawn(20) var/obj/item/weapon/firealarm_electronics/circuit = new /obj/item/weapon/firealarm_electronics() @@ -1161,13 +1170,13 @@ FIRE ALARM update_icon() if(0) if(istype(W, /obj/item/weapon/firealarm_electronics)) - user << "You insert the circuit!" + user << "You insert the circuit!" del(W) buildstage = 1 update_icon() else if(istype(W, /obj/item/weapon/wrench)) - user << "You remove the fire alarm assembly from the wall!" + user << "You remove the fire alarm assembly from the wall!" new /obj/item/mounted/frame/firealarm(get_turf(user)) playsound(get_turf(src), 'sound/items/Ratchet.ogg', 50, 1) del(src)