organ
Vars | |
healing_factor | Healing factor and decay factor function on % of maxhealth, and do not work by applying a static number per tick |
---|---|
prev_damage | Organ variables for determining what we alert the owner with when they pass/clear the damage thresholds |
useable | When you take a bite you cant jam it in for surgery anymore. |
Procs | |
applyOrganDamage | Adjusts an organ's damage by the amount "d", up to a maximum amount, which is by default max damage |
check_damage_thresholds | |
setOrganDamage | SETS an organ's damage to the amount "d", and in doing so clears or sets the failing flag, good for when you have an effect that should fix an organ if broken |
Var Details
healing_factor
Healing factor and decay factor function on % of maxhealth, and do not work by applying a static number per tick
prev_damage
Organ variables for determining what we alert the owner with when they pass/clear the damage thresholds
useable
When you take a bite you cant jam it in for surgery anymore.
Proc Details
applyOrganDamage
Adjusts an organ's damage by the amount "d", up to a maximum amount, which is by default max damage
check_damage_thresholds
- check_damage_thresholds
- input: M (a mob, the owner of the organ we call the proc on)
- output: returns a message should get displayed.
- description: By checking our current damage against our previous damage, we can decide whether we've passed an organ threshold.
-
If we have, send the corresponding threshold message to the owner, if such a message exists.
setOrganDamage
SETS an organ's damage to the amount "d", and in doing so clears or sets the failing flag, good for when you have an effect that should fix an organ if broken