mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user