mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Medical Adjustments (#10604)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4faf6a1599
commit
8f6c3fee0e
@@ -3,6 +3,8 @@
|
||||
* Modifiers applied by Medical sources.
|
||||
*/
|
||||
|
||||
//See blood.dm. This makes your blood volume & raw blood volume set to 100%.
|
||||
//This means (as long as you have blood) you will not suffocate. Even with no heart or lungs.
|
||||
/datum/modifier/bloodpump
|
||||
name = "external blood pumping"
|
||||
desc = "Your blood flows thanks to the wonderful power of science."
|
||||
@@ -28,15 +30,30 @@
|
||||
|
||||
pulse_set_level = PULSE_SLOW
|
||||
|
||||
/datum/modifier/bloodpump/corpse/check_if_valid()
|
||||
/datum/modifier/bloodpump_corpse/check_if_valid()
|
||||
..()
|
||||
if(holder.stat != DEAD)
|
||||
src.expire()
|
||||
|
||||
//This INTENTIONALLY only happens on DEAD people. Alive people are metabolizing already (and can be healed quicker through things like brute packs) meaning they don't need this extra assistance!
|
||||
//Why does it not make you bleed out? Because we'll let medical have a few benefits that don't come with innate downsides. It takes 2 seconds to resleeve someone. It takes a good amount of time to repair a corpse. Let's make the latter more appealing.
|
||||
/datum/modifier/bloodpump_corpse/tick()
|
||||
var/i = 5 //It's a controlled machine. It pumps at a nice, steady rate.
|
||||
while(i-- > 0)
|
||||
holder.handle_chemicals_in_body() // Circulates chemicals throughout the body.
|
||||
/*
|
||||
* Modifiers caused by chemicals or organs specifically.
|
||||
*/
|
||||
|
||||
/datum/modifier/bloodpump_corpse/cpr
|
||||
desc = "Your blood flows thanks to the wonderful power of CPR."
|
||||
pulse_set_level = PULSE_NONE //No pulse. You're acting as their pulse.
|
||||
|
||||
/datum/modifier/bloodpump_corpse/tick()
|
||||
var/i = rand(4,7) //CPR isn't perfect. You get some randomization in there.
|
||||
while(i-- > 0)
|
||||
holder.handle_chemicals_in_body() // Circulates chemicals throughout the body.
|
||||
|
||||
/datum/modifier/cryogelled
|
||||
name = "cryogelled"
|
||||
desc = "Your body begins to freeze."
|
||||
|
||||
Reference in New Issue
Block a user