File tree 1 file changed +15
-1
lines changed
code/modules/atmospherics/machinery
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -907,6 +907,20 @@ DEFINE_INTERACTABLE(/obj/machinery/airalarm)
907
907
908
908
return .. ()
909
909
910
+ / obj / machinery/ airalarm/ attack_hand_secondary( mob / user, list / modifiers)
911
+ . = .. ()
912
+ if (. == SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN )
913
+ return
914
+ if (! can_interact(user))
915
+ return
916
+ if (! user. canUseTopic(src , USE_CLOSE | USE_SILICON_REACH ) || ! isturf(loc))
917
+ return
918
+ if (! ishuman(user))
919
+ return
920
+
921
+ togglelock (user)
922
+ return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN
923
+
910
924
/ obj / machinery/ airalarm/ rcd_vals( mob / user, obj / item/ construction/ rcd/ the_rcd)
911
925
if ((buildstage == AIRALARM_BUILD_NO_CIRCUIT ) && (the_rcd. upgrade & RCD_UPGRADE_SIMPLE_CIRCUITS ))
912
926
return list (" mode" = RCD_UPGRADE_SIMPLE_CIRCUITS , " delay" = 20 , " cost" = 1 )
@@ -926,7 +940,7 @@ DEFINE_INTERACTABLE(/obj/machinery/airalarm)
926
940
if (machine_stat & (NOPOWER | BROKEN ))
927
941
to_chat (user, span_warning(" It does nothing!" ))
928
942
else
929
- if (src . allowed(usr ) && ! wires. is_cut(WIRE_IDSCAN ))
943
+ if (allowed(user ) && ! wires. is_cut(WIRE_IDSCAN ))
930
944
locked = ! locked
931
945
to_chat (user, span_notice(" You [ locked ? " lock" : " unlock" ] the air alarm interface." ))
932
946
if (! locked)
You can’t perform that action at this time.
0 commit comments