mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Fixes Tissue Hydration not working (#11304)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
af855f38c0
commit
485e9e4933
@@ -252,23 +252,24 @@
|
|||||||
if(A.resistance >= 5)
|
if(A.resistance >= 5)
|
||||||
absorption_coeff = 0.25
|
absorption_coeff = 0.25
|
||||||
|
|
||||||
/datum/symptom/heal/water/CanHeal(mob/living/M, datum/disease/advance/A, actual_power)
|
/datum/symptom/heal/water/CanHeal(datum/disease/advance/A, actual_power)
|
||||||
if(!istype(M))
|
|
||||||
return
|
|
||||||
|
|
||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = A.affected_mob
|
||||||
|
|
||||||
if(H.fire_stacks < 0)
|
if(H.fire_stacks < 0)
|
||||||
H.adjust_fire_stacks(min(absorption_coeff, -H.fire_stacks))
|
H.adjust_fire_stacks(min(absorption_coeff, -H.fire_stacks))
|
||||||
. += power
|
. += power
|
||||||
if(H.reagents.has_reagent(REAGENT_ID_HOLYWATER))
|
if(H.ingested.has_reagent(REAGENT_ID_HOLYWATER))
|
||||||
H.reagents.remove_reagent(REAGENT_ID_HOLYWATER, 0.5 * absorption_coeff)
|
H.ingested.remove_reagent(REAGENT_ID_HOLYWATER, 0.5 * absorption_coeff)
|
||||||
. += power * 0.75
|
. += power * 0.75
|
||||||
else if(H.reagents.has_reagent(REAGENT_ID_WATER))
|
else if(H.ingested.has_reagent(REAGENT_ID_WATER))
|
||||||
H.reagents.remove_reagent(REAGENT_ID_WATER, 0.5 * absorption_coeff)
|
H.ingested.remove_reagent(REAGENT_ID_WATER, 0.5 * absorption_coeff)
|
||||||
. += power * 0.5
|
. += power * 0.5
|
||||||
|
|
||||||
/datum/symptom/heal/water/Heal(mob/living/carbon/human/H, datum/disease/advance/A, actual_power)
|
/datum/symptom/heal/water/Heal(mob/living/carbon/human/H, datum/disease/advance/A, actual_power)
|
||||||
|
if(!istype(H))
|
||||||
|
return
|
||||||
|
|
||||||
var/heal_amt = 2 * actual_power
|
var/heal_amt = 2 * actual_power
|
||||||
|
|
||||||
var/list/zone_list = BP_ALL
|
var/list/zone_list = BP_ALL
|
||||||
@@ -279,9 +280,12 @@
|
|||||||
if(prob(5))
|
if(prob(5))
|
||||||
to_chat(H, span_notice("You feel yourself absorbing the water around you to soothe your damaged skin."))
|
to_chat(H, span_notice("You feel yourself absorbing the water around you to soothe your damaged skin."))
|
||||||
|
|
||||||
for(var/obj/item/organ/external/bodypart in zone_list)
|
var/obj/item/organ/external/pickedpart
|
||||||
if(bodypart.burn_dam > 0 && !(bodypart.robotic >= ORGAN_ROBOT))
|
|
||||||
bodypart.heal_damage(0, (heal_amt/zone_list.len))
|
for(var/bodypart in zone_list)
|
||||||
|
pickedpart = H.get_organ(bodypart)
|
||||||
|
if(pickedpart.burn_dam > 0 && !(pickedpart.robotic >= ORGAN_ROBOT))
|
||||||
|
pickedpart.heal_damage(0, (heal_amt/zone_list.len))
|
||||||
|
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user