Silicons can't interact with emagged airlocks anymore through shortcuts

This commit is contained in:
joep van der velden
2020-09-21 23:43:51 +02:00
parent 1ffca6dfed
commit bf87e128da
+15
View File
@@ -194,15 +194,27 @@
// AIRLOCKS
/obj/machinery/door/airlock/AIAltShiftClick(mob/user) // Sets/Unsets Emergency Access Override
if(emagged)
to_chat(user, "<span class='warning'>Unable to interface: Internal error.</span>")
return
toggle_emergency_status(user)
/obj/machinery/door/airlock/AIShiftClick(mob/user) // Opens and closes doors!
if(emagged)
to_chat(user, "<span class='warning'>Unable to interface: Internal error.</span>")
return
open_close(user)
/obj/machinery/door/airlock/AICtrlClick(mob/living/silicon/user) // Bolts doors
if(emagged)
to_chat(user, "<span class='warning'>Unable to interface: Internal error.</span>")
return
toggle_bolt(user)
/obj/machinery/door/airlock/AIAltClick(mob/living/silicon/user) // Electrifies doors.
if(emagged)
to_chat(user, "<span class='warning'>Unable to interface: Internal error.</span>")
return
if(wires.is_cut(WIRE_ELECTRIFY))
to_chat(user, "<span class='warning'>The electrification wire is cut - Cannot electrify the door.</span>")
if(isElectrified())
@@ -212,6 +224,9 @@
/obj/machinery/door/airlock/AIMiddleClick(mob/living/user) // Toggles door bolt lights.
if(emagged)
to_chat(user, "<span class='warning'>Unable to interface: Internal error.</span>")
return
toggle_light(user)
// FIRE ALARMS