/tg/ Station 13 - Modules - TypesVar Details - Proc Details

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_timerID of the timer which will decay this organ
desc_inertDescription to use once organ is inert
desc_preservedDescription to use once organ has been preserved
icon_state_inertIcon state to apply when inert
icon_state_preservedIcon state to apply when preserved
inertSet to true if this organ has decayed into uselessness.
time_to_decayTime after which organ should become useless
user_statusStatus effect applied by this organ

Procs

apply_toApplies the effect of this organ to the target. Arguments
go_inertDecays the organ, it is now useless.
on_triggered_internalCalled when activated while implanted inside someone. This could be via clicking the associated action button or through the above method.
preservePreserves the organ so that it will not decay. Returns true if successful.
trigger_organ_actionUtility 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_applyTries 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

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