manual_heart ![code/datums/components/manual_heart.dm 10](git.png)
Manual heart pumping component. Requires the holder to pump their heart manually every so often or die.
Mainly used by the cursed heart.
Vars | |
add_colour | If true, add a screen tint on the next process |
---|---|
blood_loss | How much blood volume you lose every missed pump, this is a flat amount not a percentage! |
heal_brute | The amount of brute damage to heal per pump |
heal_burn | The amount of burn damage to heal per pump |
heal_oxy | The amount of oxygen damage to heal per pump |
heart_timer | Cooldown before harm is caused to the owner |
pump_action | The action for pumping your heart |
pump_delay | How long between needed pumps; you can pump one second early |
Procs | |
check_added_organ | If a new heart is added, start processing. |
check_removed_organ | If the heart is removed, stop processing. |
check_valid | Helper proc to check if processing can be restarted. |
on_pump | Worker proc that checks logic for if a pump can happen, and applies effects from doing so |
Var Details
add_colour ![code/datums/components/manual_heart.dm 16](git.png)
If true, add a screen tint on the next process
blood_loss ![code/datums/components/manual_heart.dm 20](git.png)
How much blood volume you lose every missed pump, this is a flat amount not a percentage!
heal_brute ![code/datums/components/manual_heart.dm 24](git.png)
The amount of brute damage to heal per pump
heal_burn ![code/datums/components/manual_heart.dm 26](git.png)
The amount of burn damage to heal per pump
heal_oxy ![code/datums/components/manual_heart.dm 28](git.png)
The amount of oxygen damage to heal per pump
heart_timer ![code/datums/components/manual_heart.dm 14](git.png)
Cooldown before harm is caused to the owner
pump_action ![code/datums/components/manual_heart.dm 12](git.png)
The action for pumping your heart
pump_delay ![code/datums/components/manual_heart.dm 18](git.png)
How long between needed pumps; you can pump one second early
Proc Details
check_added_organ
If a new heart is added, start processing.
check_removed_organ
If the heart is removed, stop processing.
check_valid
Helper proc to check if processing can be restarted.
on_pump
Worker proc that checks logic for if a pump can happen, and applies effects from doing so