strange_reagent ![code/modules/reagents/chemistry/reagents/medicine_reagents.dm 993](git.png)
Vars | |
excess_healing_ratio | The ratio of the excess reagent used to contribute to excess healing |
---|---|
healing_per_reagent_unit | The amount of damage a single unit of this will heal |
instant | Do we instantly revive |
max_revive_damage_ratio | The maximum amount of damage we can revive from, as a ratio of max health |
Procs | |
calculate_amount_needed_to_full_heal | Calculates the amount of reagent that will be needed to both revive and full heal the target. Looks at healing_per_reagent_unit and excess_healing_ratio |
calculate_amount_needed_to_revive | Calculates the amount of reagent to at a bare minimum make the target not dead |
Var Details
excess_healing_ratio ![code/modules/reagents/chemistry/reagents/medicine_reagents.dm 1006](git.png)
The ratio of the excess reagent used to contribute to excess healing
healing_per_reagent_unit ![code/modules/reagents/chemistry/reagents/medicine_reagents.dm 1004](git.png)
The amount of damage a single unit of this will heal
instant ![code/modules/reagents/chemistry/reagents/medicine_reagents.dm 1008](git.png)
Do we instantly revive
max_revive_damage_ratio ![code/modules/reagents/chemistry/reagents/medicine_reagents.dm 1010](git.png)
The maximum amount of damage we can revive from, as a ratio of max health
Proc Details
calculate_amount_needed_to_full_heal
Calculates the amount of reagent that will be needed to both revive and full heal the target. Looks at healing_per_reagent_unit and excess_healing_ratio
calculate_amount_needed_to_revive
Calculates the amount of reagent to at a bare minimum make the target not dead