Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/targetable

Vars

check_rangeDoes this check for range at all?
cooldown_after_actionif TRUE, cooldowns will be handled after action bars have ended. Needs action to call afterAction() on end.
do_logsdo we log casting this action? set false for stuff that doesn't need to be logged, like dancing
ignore_holder_lockCan we cast this spell when the holder is locked?
ignore_sticky_cooldownIf TRUE, Ability will stick to cursor even if ability goes on cooldown after first cast.
interrupt_action_barsIf TRUE, we will interrupt any action bars running with the INTERRUPT_ACT flag
lock_holderIf FALSE, bypass holder lock when we cast this spell.
restricted_area_checkAre we prohibited from casting this spell in 1 (all of Z2) or 2 (only the VR)?
stickyTargeting stays active after using spell if this is 1. click button again to disable the active spell.
target_anythingCan we target absolutely anything?
target_ghostsCan we target observers if we see them (ectogoggles)?
target_in_inventoryCan we target items in our inventory?
target_nodamage_checkCan we target godmoded mobs?
target_selection_checkSee comment in /atom/movable/screen/ability.
targetedDoes this need a target? If FALSE, ability is performed instantly

Procs

afterActionUsed for abilities with action bars which don't want to do cooldowns until after
allowcastPassive cast checking. Returns TRUE if the cast can proceed. This fires every update, and is currently only used to gray out buttons/indicate to players that the ability is unusable. Useful for things like different point requirements or only allowing casts under certain conditions. Actual logic to prevent the cast from firing should be done in the cast() override too!
castHandle actual ability effects. This is the one you want to override. Returns for this proc can be found in defines/abilities.dm.

Var Details

check_range

Does this check for range at all?

cooldown_after_action

if TRUE, cooldowns will be handled after action bars have ended. Needs action to call afterAction() on end.

do_logs

do we log casting this action? set false for stuff that doesn't need to be logged, like dancing

ignore_holder_lock

Can we cast this spell when the holder is locked?

ignore_sticky_cooldown

If TRUE, Ability will stick to cursor even if ability goes on cooldown after first cast.

interrupt_action_bars

If TRUE, we will interrupt any action bars running with the INTERRUPT_ACT flag

lock_holder

If FALSE, bypass holder lock when we cast this spell.

restricted_area_check

Are we prohibited from casting this spell in 1 (all of Z2) or 2 (only the VR)?

sticky

Targeting stays active after using spell if this is 1. click button again to disable the active spell.

target_anything

Can we target absolutely anything?

target_ghosts

Can we target observers if we see them (ectogoggles)?

target_in_inventory

Can we target items in our inventory?

target_nodamage_check

Can we target godmoded mobs?

target_selection_check

See comment in /atom/movable/screen/ability.

targeted

Does this need a target? If FALSE, ability is performed instantly

Proc Details

afterAction

Used for abilities with action bars which don't want to do cooldowns until after

allowcast

Passive cast checking. Returns TRUE if the cast can proceed. This fires every update, and is currently only used to gray out buttons/indicate to players that the ability is unusable. Useful for things like different point requirements or only allowing casts under certain conditions. Actual logic to prevent the cast from firing should be done in the cast() override too!

cast

Handle actual ability effects. This is the one you want to override. Returns for this proc can be found in defines/abilities.dm.