organ_corruption
Component for Hemophage tumor-induced organ corruption, for the organs
that need to receive the ORGAN_TUMOR_CORRUPTED
flag, to corrupt
them properly.
Vars | |
corruptable_organ_type | The type of organ affected by this specific type of organ corruption. |
---|---|
corrupted_icon | If this type of organ has a unique sprite for what its corrupted version should look like, this will be the icon file it will be pulled from. |
corrupted_icon_state | If this type of organ has a unique sprite for what its corrupted version should look like, this will be the icon state it will be pulled from. |
corrupted_prefix | The prefix added to the organ once it is successfully corrupted. |
corruption_timer_id | The timer associated with the corruption process, if any. |
currently_tumorless | Whether this organ is tumorless and therefore should be taking damage. Note: This variable isn't there to handle the behavior, and is only there to prevent organs taking damage when tumors are being swapped around between multiple people, somehow. |
Procs | |
clear_corruption_timer | Handles clearing the timer for corrupting an organ if the organ is QDELETING . |
corrupt_organ | Handles corrupting the organ, adding any sort of behavior on it as needed. |
decay_corrupted_organ | Handles damaging the corrupted organ when the tumor is no longer present in the body. |
on_tumor_removed | Handles either deleting the corruption in case the organ didn't get corrupted yet, or starting the process of the organ degrading because the tumor isn't there to sustain it anymore. |
organ_is_corrupted | Returns whether or not the attached organ has been corrupted yet or not.
Fancy wrapper for just !corruption_timer_id . |
register_signals_on_organ_owner | Handles registering signals on the (new) organ owner, if it was to ever be taken out and put into someone else. |
unregister_signals_from_organ_loser | Handles unregistering the signals that were registered on the loser from
having this organ in their body. |
Var Details
corruptable_organ_type
The type of organ affected by this specific type of organ corruption.
corrupted_icon
If this type of organ has a unique sprite for what its corrupted version should look like, this will be the icon file it will be pulled from.
corrupted_icon_state
If this type of organ has a unique sprite for what its corrupted version should look like, this will be the icon state it will be pulled from.
corrupted_prefix
The prefix added to the organ once it is successfully corrupted.
corruption_timer_id
The timer associated with the corruption process, if any.
currently_tumorless
Whether this organ is tumorless and therefore should be taking damage. Note: This variable isn't there to handle the behavior, and is only there to prevent organs taking damage when tumors are being swapped around between multiple people, somehow.
Proc Details
clear_corruption_timer
Handles clearing the timer for corrupting an organ if the organ is QDELETING
.
corrupt_organ
Handles corrupting the organ, adding any sort of behavior on it as needed.
Arguments:
- corruption_target - The organ that will get corrupted.
decay_corrupted_organ
Handles damaging the corrupted organ when the tumor is no longer present in the body.
on_tumor_removed
Handles either deleting the corruption in case the organ didn't get corrupted yet, or starting the process of the organ degrading because the tumor isn't there to sustain it anymore.
organ_is_corrupted
Returns whether or not the attached organ has been corrupted yet or not.
Fancy wrapper for just !corruption_timer_id
.
register_signals_on_organ_owner
Handles registering signals on the (new) organ owner, if it was to ever be taken out and put into someone else.
unregister_signals_from_organ_loser
Handles unregistering the signals that were registered on the loser
from
having this organ in their body.