Potassium Chloride/Chlorophoride Adjustments (#16938)

* Potassium Chloride/Chlorophoride Adjustments

* Update code/modules/organs/internal/heart.dm

Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>

---------

Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
This commit is contained in:
Doxxmedearly
2023-08-03 22:51:31 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 4f0f407836
commit c0bff2b352
3 changed files with 13 additions and 7 deletions
+2 -1
View File
@@ -56,7 +56,7 @@
if(oxy < BLOOD_VOLUME_BAD) //MOAR
pulse_mod++
if(owner.status_flags & FAKEDEATH || owner.chem_effects[CE_NOPULSE])
if(owner.status_flags & FAKEDEATH)
pulse = Clamp(PULSE_NONE + pulse_mod, PULSE_NONE, PULSE_2FAST) //pretend that we're dead. unlike actual death, can be inflienced by meds
return
@@ -67,6 +67,7 @@
var/should_stop = prob(80) && owner.get_blood_circulation() < BLOOD_VOLUME_SURVIVE //cardiovascular shock, not enough liquid to pump
should_stop = should_stop || prob(max(0, owner.getBrainLoss() - owner.maxHealth * 0.75)) //brain failing to work heart properly
should_stop = should_stop || (prob(5) && pulse == PULSE_THREADY) //erratic heart patterns, usually caused by oxyloss
should_stop = should_stop || owner.chem_effects[CE_NOPULSE]
if(should_stop) // The heart has stopped due to going into traumatic or cardiovascular shock.
to_chat(owner, "<span class='danger'>Your heart has stopped!</span>")
pulse = PULSE_NONE