From e0a6ec7284cf2ec834e8d721ebc1ed6dd241d5b9 Mon Sep 17 00:00:00 2001 From: Little-119 Date: Wed, 10 Mar 2021 19:52:04 -0500 Subject: [PATCH] add bone healing to calcium (with a 1 in 1000 chance) Yes it can, Mlem --- .../Chemistry-Reagents-Dispenser.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm index fa77413f264..3cd351bee04 100644 --- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm +++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Dispenser.dm @@ -16,6 +16,18 @@ reagent_state = SOLID color = "#e9e6e4" +//VOREStation Edit +/datum/reagent/calcium/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed) + if(ishuman(M) && rand(1,1000) == 1) // Higher chance of occuring than with milk, since most people don't just eat straight calcium + var/mob/living/carbon/human/H = M + for(var/obj/item/organ/external/O in H.bad_external_organs) + if(O.status & ORGAN_BROKEN) + O.mend_fracture() + H.custom_pain("You feel the agonizing power of calcium mending your bones!",60) + H.AdjustWeakened(1) + break // Only mend one bone, whichever comes first in the list +//VOREStation Edit End + /datum/reagent/carbon name = "Carbon" id = "carbon"