mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
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:
co-authored by
Matt Atlas
parent
4f0f407836
commit
c0bff2b352
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user