Fix air alarm silicon lock/unlock (#83609)

## About The Pull Request

What it says on the tin.

Closes #80865

## Why It's Good For The Game

Fix good.

## Changelog
🆑
fix: Fixed Silicons not being able to (un)lock Air Alarms.
/🆑
This commit is contained in:
Wayland-Smithy
2024-06-07 22:47:21 -04:00
committed by GitHub
parent f5b7e4eb66
commit 50def3140a
2 changed files with 7 additions and 1 deletions
@@ -491,6 +491,10 @@ GLOBAL_LIST_EMPTY_TYPED(air_alarms, /obj/machinery/airalarm)
if(allow_link_change)
disconnect_sensor()
if ("lock")
togglelock(usr)
return TRUE
update_appearance()
return TRUE
@@ -71,6 +71,9 @@
if(machine_stat & (NOPOWER|BROKEN))
to_chat(user, span_warning("It does nothing!"))
else
if(HAS_SILICON_ACCESS(user))
locked = !locked
return
if(src.allowed(usr) && !wires.is_cut(WIRE_IDSCAN))
locked = !locked
to_chat(user, span_notice("You [ locked ? "lock" : "unlock"] the air alarm interface."))
@@ -78,7 +81,6 @@
ui_interact(user)
else
to_chat(user, span_danger("Access denied."))
return
/obj/machinery/airalarm/emag_act(mob/user, obj/item/card/emag/emag_card)
if(obj_flags & EMAGGED)