Fixes an air damage runtime and whisper verb printing (#9110)

This commit is contained in:
Matt Atlas
2020-06-13 11:50:41 +02:00
committed by GitHub
parent 8425bf2b66
commit 71fc63d2c7
5 changed files with 63 additions and 19 deletions
+6 -3
View File
@@ -68,7 +68,7 @@
H.bloody_body(src)
H.bloody_hands(src)
var/blinding = FALSE
if(ran_zone("head", 75))
if(ran_zone(BP_HEAD, 75))
blinding = TRUE
for(var/obj/item/I in list(H.head, H.glasses, H.wear_mask))
if(I && (I.body_parts_covered & EYES))
@@ -82,10 +82,13 @@
to_chat(H, "<span class='danger'>You are hit by a spray of blood!</span>")
hit_mob = TRUE
if(hit_mob || !A.CanPass(src, sprayloc))
break
if(!(A.CanPass(src, sprayloc)) || hit_mob)
continue
drip(amt, sprayloc, spraydir)
bled += amt
if(hit_mob)
break
return bled
#undef BLOOD_SPRAY_DISTANCE