monster_core
Useful organs which drop as loot from a mining creature. Generalised behaviour is that they will decay and become useless unless provided with serum. These should usually do something both when used in-hand, or when implanted into someone.
Vars | |
decay_timer | ID of the timer which will decay this organ |
---|---|
desc_inert | Description to use once organ is inert |
desc_preserved | Description to use once organ has been preserved |
icon_state_inert | Icon state to apply when inert |
icon_state_preserved | Icon state to apply when preserved |
inert | Set to true if this organ has decayed into uselessness. |
time_to_decay | Time after which organ should become useless |
user_status | Status effect applied by this organ |
Procs | |
apply_to | Applies the effect of this organ to the target. Arguments |
go_inert | Decays the organ, it is now useless. |
on_triggered_internal | Called when activated while implanted inside someone. This could be via clicking the associated action button or through the above method. |
preserve | Preserves the organ so that it will not decay. Returns true if successful. |
trigger_organ_action | Utility proc to find the associated monster organ action and trigger it. Call this instead of on_triggered_internal() if the action needs to trigger automatically, or the cooldown won't happen. |
try_apply | Tries to apply organ effect to target. Usually you should not need to override this, only apply_to. Arguments |
Var Details
decay_timer
ID of the timer which will decay this organ
desc_inert
Description to use once organ is inert
desc_preserved
Description to use once organ has been preserved
icon_state_inert
Icon state to apply when inert
icon_state_preserved
Icon state to apply when preserved
inert
Set to true if this organ has decayed into uselessness.
time_to_decay
Time after which organ should become useless
user_status
Status effect applied by this organ
Proc Details
apply_to
Applies the effect of this organ to the target. Arguments
- target - Person you are applying this to.
- user - Person who is doing the applying.
go_inert
Decays the organ, it is now useless.
on_triggered_internal
Called when activated while implanted inside someone. This could be via clicking the associated action button or through the above method.
preserve
Preserves the organ so that it will not decay. Returns true if successful.
- Implanted - If true, organ has just been inserted into someone.
trigger_organ_action
Utility proc to find the associated monster organ action and trigger it. Call this instead of on_triggered_internal() if the action needs to trigger automatically, or the cooldown won't happen.
try_apply
Tries to apply organ effect to target. Usually you should not need to override this, only apply_to. Arguments
- target - Person you are applying this to.
- user - Person who is doing the applying.