Merge pull request #7263 from VOREStation/Arokha/standrag

Remove bloodspray when pulling standing people
This commit is contained in:
Atermonera
2020-06-04 19:26:13 -07:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -1631,7 +1631,8 @@
// Drag damage is handled in a parent
/mob/living/carbon/human/dragged(var/mob/living/dragger, var/oldloc)
if(prob(getBruteLoss() * 200 / maxHealth))
var/area/A = get_area(src)
if(lying && !buckled && A.has_gravity() && prob(getBruteLoss() * 200 / maxHealth))
var/bloodtrail = 1
if(species?.flags & NO_BLOOD)
bloodtrail = 0

View File

@@ -765,7 +765,7 @@ default behaviour is:
/mob/living/proc/dragged(var/mob/living/dragger, var/oldloc)
var/area/A = get_area(src)
if(lying && !buckled && pull_damage() && A.has_gravity && (prob(getBruteLoss() * 200 / maxHealth)))
if(lying && !buckled && pull_damage() && A.has_gravity() && (prob(getBruteLoss() * 200 / maxHealth)))
adjustBruteLoss(2)
visible_message("<span class='danger'>\The [src]'s [isSynthetic() ? "state" : "wounds"] worsen terribly from being dragged!</span>")