Sensible airlock deconstruction. (#9974)

This commit is contained in:
FirinMaLazors
2020-09-19 06:11:31 -04:00
committed by GitHub
parent e6ef7e06bd
commit 7124812b83
2 changed files with 13 additions and 2 deletions

View File

@@ -1150,8 +1150,8 @@ About the new airlock wires panel:
..()
return
if(p_open && !operating && welded)
if(!locked && bolt_cut_state != BOLTS_CUT)
to_chat(user, SPAN_WARNING("The airlock bolts are in the way of the electronics, you need to drop them before you can reach them."))
if(locked)
to_chat(user, SPAN_WARNING("The airlock bolts are in the way of the electronics, you need to raise them before you can reach them."))
return
playsound(src.loc, C.usesound, 100, 1)
user.visible_message("<b>[user]</b> starts removing the electronics from the airlock assembly.", SPAN_NOTICE("You start removing the electronics from the airlock assembly."))
@@ -1547,6 +1547,10 @@ About the new airlock wires panel:
if(p_open)
to_chat(user, "\The [src]'s maintenance panel has been unscrewed and is hanging open.")
/obj/machinery/door/airlock/emag_act(var/remaining_charges)
. = ..()
lock(1)
#undef AIRLOCK_CRUSH_DIVISOR
#undef CYBORG_AIRLOCKCRUSH_RESISTANCE
#undef BOLTS_FINE

View File

@@ -0,0 +1,7 @@
author: FirinMaLazors
delete-after: True
changes:
- rscadd: "Fixes airlock deconstruction to only needs the bolts to be cut if the bolts are down and the door is broken."
- rscadd: "Re-adds the emag bolting doors open and breaking them, instead of just opening them and breaking them. Can't be stopping security because you have a crowbar and they don't, now."