Space Station 13 - Modules - TypesVar Details - Proc Details

spell

Vars

should_recharge_after_castWhether an ability should start cooldown after cast or not.

Procs

can_targetcan_target: Checks if we are allowed to cast the spell on a target.
should_remove_click_interceptCalled in try_perform before removing the click interceptor. Useful to override if you have a spell that requires more than 1 click
try_performWill try and perform the spell using the given targets and user. Will spend one charge of the spell
valid_targetAllows for spell specific target validation. Will be used by the spell_targeting datums

Var Details

should_recharge_after_cast

Whether an ability should start cooldown after cast or not.

Proc Details

can_target

can_target: Checks if we are allowed to cast the spell on a target.

Arguments:

should_remove_click_intercept

Called in try_perform before removing the click interceptor. Useful to override if you have a spell that requires more than 1 click

try_perform

Will try and perform the spell using the given targets and user. Will spend one charge of the spell

Arguments:

valid_target

Allows for spell specific target validation. Will be used by the spell_targeting datums

Arguments: