mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
[s] Tis just a flesh wound (#24861)
This commit is contained in:
@@ -155,20 +155,20 @@
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/obj/item/organ/external/affecting = H.get_organ(user.zone_selected)
|
||||
for(var/obj/item/organ/external/E in H.bodyparts)
|
||||
if(E.open == ORGAN_ORGANIC_OPEN)
|
||||
to_chat(user, "<span class='warning'>[E] is cut open, you'll need more than a bandage!</span>")
|
||||
return
|
||||
affecting.germ_level = 0
|
||||
|
||||
if(affecting.open == ORGAN_CLOSED)
|
||||
affecting.germ_level = 0
|
||||
if(stop_bleeding)
|
||||
if(!H.bleedsuppress) //so you can't stack bleed suppression
|
||||
H.suppress_bloodloss(stop_bleeding)
|
||||
|
||||
if(stop_bleeding)
|
||||
if(!H.bleedsuppress) //so you can't stack bleed suppression
|
||||
H.suppress_bloodloss(stop_bleeding)
|
||||
heal(H, user)
|
||||
|
||||
heal(H, user)
|
||||
|
||||
H.UpdateDamageIcon()
|
||||
use(1)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>[affecting] is cut open, you'll need more than a bandage!</span>")
|
||||
H.UpdateDamageIcon()
|
||||
use(1)
|
||||
|
||||
/obj/item/stack/medical/bruise_pack/improvised
|
||||
name = "improvised gauze"
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
"<span class='notice'> You have made an incision on [target]'s [affected.name] with \the [tool].</span>"
|
||||
)
|
||||
affected.open = ORGAN_ORGANIC_OPEN
|
||||
target.resume_bleeding()
|
||||
return SURGERY_STEP_CONTINUE
|
||||
|
||||
/datum/surgery_step/generic/cut_open/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
addtimer(CALLBACK(src, PROC_REF(resume_bleeding)), amount)
|
||||
|
||||
/mob/living/carbon/human/proc/resume_bleeding()
|
||||
bleedsuppress = FALSE
|
||||
if(stat != DEAD && bleed_rate)
|
||||
if(stat != DEAD && bleed_rate && bleedsuppress)
|
||||
to_chat(src, "<span class='warning'>The blood soaks through your bandage.</span>")
|
||||
bleedsuppress = FALSE
|
||||
|
||||
// Takes care blood loss and regeneration
|
||||
/mob/living/carbon/human/handle_blood()
|
||||
|
||||
Reference in New Issue
Block a user