From 1570034af3edcb42e085933b3a2b50f5111d66a4 Mon Sep 17 00:00:00 2001 From: Alberyk Date: Fri, 16 Mar 2018 14:45:39 -0300 Subject: [PATCH] forcing airlocks or something (#4406) Species with strong claws can now open firelocks --- code/game/machinery/doors/firedoor.dm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index f73ab5dde5c..1b3b4979b52 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -159,14 +159,23 @@ for(var/area/A in areas_added) //Checks if there are fire alarms in any areas associated with that firedoor if(A.fire || A.air_doors_activated) alarmed = 1 -/* - var/answer = alert(user, "Would you like to [density ? "open" : "close"] this [src.name]?[ alarmed && density ? "\nNote that by doing so, you acknowledge any damages from opening this\n[src.name] as being your own fault, and you will be held accountable under the law." : ""]",\ - "\The [src]", "Yes, [density ? "open" : "close"]", "No") - if(answer == "No") - return*/ if(user.incapacitated() || (get_dist(src, user) > 1 && !issilicon(user))) user << "Sorry, you must remain able bodied and close to \the [src] in order to use it." return + + if(ishuman(user)) + var/mob/living/carbon/human/H = user + + if(H.species.can_shred(H)) + + if(src.density) + visible_message("\The [H] forces \the [src] open!") + open(1) + else + visible_message("\The [H] forces \the [src] closed!") + close(1) + return + if(density && (stat & (BROKEN|NOPOWER))) //can still close without power user << "\The [src] is not functioning, you'll have to force it open manually." return