makes vaurca not suffocate when hanged (#12748)

changelog

Co-authored-by: TGW <mc-casper@hotmail.dk>
This commit is contained in:
Casper3667
2021-11-13 13:42:19 +01:00
committed by GitHub
co-authored by TGW
parent e39afd260b
commit f845f9a85b
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -1116,6 +1116,10 @@ obj/structure/cable/proc/cableColor(var/colorC)
to_chat(user, SPAN_DANGER("They don't have a head."))
return
if(M.mob_size >= 20)
to_chat(user, SPAN_DANGER("They are too large for the noose to hold."))
return
if(M.loc != src.loc) return FALSE //Can only noose someone if they're on the same tile as noose
add_fingerprint(user)
@@ -1193,7 +1197,7 @@ obj/structure/cable/proc/cableColor(var/colorC)
var/mob/living/B = buckled
if (ishuman(B))
var/mob/living/carbon/human/H = B
if (H.species && (H.species.flags & NO_BREATHE))
if (H.species && (H.species.flags & NO_BREATHE) || isvaurca(H))
return
B.adjustOxyLoss(5)
B.adjustBrainLoss(1)