oh, right. i've gotta add a snowflake check since /living lacks bleed() in the base code

This commit is contained in:
deathride58
2019-02-20 03:37:07 -05:00
parent 20740bda39
commit c11aba9368
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -125,7 +125,11 @@
if(prob(33))
I.add_mob_blood(src)
var/turf/location = get_turf(src)
bleed(totitemdamage)
if(iscarbon(src))
var/mob/living/carbon/C = src
C.bleed(totitemdamage)
else
add_splatter_floor(location)
if(totitemdamage >= 10 && get_dist(user, src) <= 1) //people with TK won't get smeared with blood
user.add_mob_blood(src)
return TRUE //successful attack
+5 -1
View File
@@ -327,7 +327,11 @@
L.adjustBruteLoss(DOOR_CRUSH_DAMAGE)
var/turf/location = get_turf(src)
//add_blood doesn't work for borgs/xenos, but add_blood_floor does.
L.bleed(DOOR_CRUSH_DAMAGE)
if(iscarbon(L))
var/mob/living/carbon/C = L
C.bleed(DOOR_CRUSH_DAMAGE)
else
L.add_splatter_floor(location)
for(var/obj/mecha/M in get_turf(src))
M.take_damage(DOOR_CRUSH_DAMAGE)
@@ -75,7 +75,11 @@
L.visible_message("<span class='danger'>[user] slams [L] onto the meat spike!</span>", "<span class='userdanger'>[user] slams you onto the meat spike!</span>", "<span class='italics'>You hear a squishy wet noise.</span>")
L.forceMove(drop_location())
L.emote("scream")
L.bleed(30)
if(iscarbon(L))
var/mob/living/carbon/C = L
C.bleed(30)
else
L.add_splatter_floor()
L.adjustBruteLoss(30)
L.setDir(2)
buckle_mob(L, force=1)