IPC bleeding v2

This commit is contained in:
Aurorablade
2018-04-22 00:21:48 -04:00
parent 1aa28c5d71
commit 72a3c66cf5
9 changed files with 31 additions and 11 deletions
+6
View File
@@ -397,6 +397,11 @@
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/S = H.bodyparts_by_name[user.zone_sel.selecting]
if(H.bleed_rate > 1 && H.isSynthetic())
if(get_fuel() >= 1)
H.bleed_rate = 0
user.visible_message("<span class='alert'>\The [user] welds a leak on \the [M] with \the [src].</span>")
if(!S)
return
@@ -417,6 +422,7 @@
playsound(src.loc, usesound, 50, 1)
S.heal_damage(15,0,0,1)
user.visible_message("<span class='alert'>\The [user] patches some dents on \the [M]'s [S.name] with \the [src].</span>")
else if(S.open != 2)
to_chat(user, "<span class='warning'>Need more welding fuel!</span>")
return 1