mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 00:53:23 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user