mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
IPC bleeding v2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user