mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
[MIRROR] Fixes skeletons not healing burn damage by milk. [MDB IGNORE] (#23125)
* Fixes skeletons not healing burn damage by milk. (#77645) ## About The Pull Request Closes https://github.com/tgstation/tgstation/issues/77629 ## Changelog 🆑 fix: Skeletons now heal burn damage with milk once again. /🆑 * Fixes skeletons not healing burn damage by milk. --------- Co-authored-by: Helg2 <93882977+Helg2@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
icon_state = "liver-p"
|
||||
organ_flags = ORGAN_MINERAL
|
||||
organ_traits = list(TRAIT_PLASMA_LOVER_METABOLISM)
|
||||
milk_burn_healing = 0
|
||||
|
||||
/obj/item/organ/internal/liver/bone/plasmaman/handle_chemical(mob/living/carbon/organ_owner, datum/reagent/chem, seconds_per_tick, times_fired)
|
||||
. = ..()
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
desc = "You have no idea what this strange ball of bones does."
|
||||
icon_state = "liver-bone"
|
||||
organ_traits = list(TRAIT_STABLELIVER)
|
||||
///Var for brute healing via milk
|
||||
var/milk_brute_healing = 2.5
|
||||
///Var for burn healing via milk
|
||||
var/milk_burn_healing = 2.5
|
||||
|
||||
/obj/item/organ/internal/liver/bone/handle_chemical(mob/living/carbon/organ_owner, datum/reagent/chem, seconds_per_tick, times_fired)
|
||||
. = ..()
|
||||
@@ -43,7 +47,7 @@
|
||||
if(chem.volume > 50)
|
||||
organ_owner.reagents.remove_reagent(chem.type, (chem.volume - 50))
|
||||
to_chat(organ_owner, span_warning("The excess milk is dripping off your bones!"))
|
||||
organ_owner.heal_bodypart_damage(2.5 * REM * seconds_per_tick)
|
||||
organ_owner.heal_bodypart_damage(milk_brute_healing * REM * seconds_per_tick, milk_burn_healing * REM * seconds_per_tick)
|
||||
for(var/datum/wound/iter_wound as anything in organ_owner.all_wounds)
|
||||
iter_wound.on_xadone(1 * REM * seconds_per_tick)
|
||||
return // Do normal metabolism
|
||||
|
||||
Reference in New Issue
Block a user