Allows human mobs to alt+click to unlock APC and Air Alarms (#20742)

* alt+click to unlock airalarms and apc

* Update code/modules/atmospherics/machinery/airalarm.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
ppi13
2023-04-22 09:18:31 +02:00
committed by GitHub
parent c2176e3598
commit bcbce645b1
2 changed files with 11 additions and 0 deletions
@@ -1111,6 +1111,13 @@
new /obj/item/stack/cable_coil(loc, 3)
qdel(src)
/obj/machinery/alarm/AltClick(mob/user)
if(Adjacent(user) && allowed(user) && !wires.is_cut(WIRE_IDSCAN))
locked = !locked
to_chat(user, "<span class='notice'>You [locked ? "lock" : "unlock"] the Air Alarm interface.</span>")
else
to_chat(user, "<span class='warning'>Access denied.</span>")
/obj/machinery/alarm/examine(mob/user)
. = ..()
switch(buildstage)
+4
View File
@@ -362,6 +362,10 @@
else
return ..()
/obj/machinery/power/apc/AltClick(mob/user)
if(Adjacent(user))
togglelock(user)
/obj/machinery/power/apc/run_obj_armor(damage_amount, damage_type, damage_flag = 0, attack_dir)
if(stat & BROKEN)
return damage_amount