diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index cc384548f18..e0256ccf9a8 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -719,7 +719,7 @@ About the new airlock wires panel: return if(headbutt_airlock(user)) - return//Smack that head against that airlock + return // Smack that head against that airlock if(remove_airlock_note(user, FALSE)) return @@ -1004,8 +1004,13 @@ About the new airlock wires panel: /obj/machinery/door/airlock/wirecutter_act(mob/user, obj/item/I) if(!headbutt_shock_check(user)) return - if(!panel_open || user.a_intent == INTENT_HARM) - return + + if(!panel_open) + if(note) + return remove_airlock_note(user, TRUE) + // Can't do much else with the panel closed. + return FALSE + . = TRUE if(!I.tool_start_check(src, user, 0)) return @@ -1020,10 +1025,7 @@ About the new airlock wires panel: "You cut through \the [src]'s outer grille.") security_level = AIRLOCK_SECURITY_PLASTEEL_O return - if(note) - remove_airlock_note(user, TRUE) - else - interact_with_panel(user) + interact_with_panel(user) /obj/machinery/door/airlock/multitool_act(mob/user, obj/item/I) if(!headbutt_shock_check(user)) @@ -1413,23 +1415,24 @@ About the new airlock wires panel: //Removes the current note on the door if any. Returns if a note is removed /obj/machinery/door/airlock/proc/remove_airlock_note(mob/user, wirecutters_used = TRUE) - if(note) - if(!wirecutters_used) - if (ishuman(user) && user.a_intent == INTENT_GRAB)//grab that note - user.visible_message("[user] removes [note] from [src].", "You remove [note] from [src].") - playsound(src, 'sound/items/poster_ripped.ogg', 50, 1) - else - return FALSE + if(!note) + return FALSE + + if(!wirecutters_used) + if (ishuman(user) && (user.a_intent == INTENT_GRAB)) //grab that note + user.visible_message("[user] removes [note] from [src].", "You remove [note] from [src].") + playsound(src, 'sound/items/poster_ripped.ogg', 50, 1) else - user.visible_message("[user] cuts down [note] from [src].", "You remove [note] from [src].") - playsound(src, 'sound/items/wirecutter.ogg', 50, 1) - note.add_fingerprint(user) - user.create_log(MISC_LOG, "removed [note] from", src) - user.put_in_hands(note) - note = null - update_icon() - return TRUE - return FALSE + return FALSE + else + user.visible_message("[user] cuts down [note] from [src].", "You remove [note] from [src].") + playsound(src, 'sound/items/wirecutter.ogg', 50, 1) + note.add_fingerprint(user) + user.create_log(MISC_LOG, "removed [note] from", src) + user.put_in_hands(note) + note = null + update_icon() + return TRUE /obj/machinery/door/airlock/narsie_act(weak = FALSE) var/turf/T = get_turf(src)