Yogstation 13 - Modules - TypesDefine Details

code/__DEFINES/dcs/signals/signals_spell.dm

COMSIG_MOB_BEFORE_SPELL_CASTSent from /datum/action/cooldown/spell/before_cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on)
COMSIG_SPELL_BEFORE_CASTSent from /datum/action/cooldown/spell/before_cast() to the spell: (atom/cast_on)
SPELL_CANCEL_CASTReturn to prevent the spell cast from continuing.
SPELL_NO_FEEDBACKReturn from before cast signals to prevent the spell from giving off sound or invocation.
SPELL_NO_IMMEDIATE_COOLDOWNReturn from before cast signals to prevent the spell from going on cooldown before aftercast.
COMSIG_MOB_SPELL_ACTIVATEDSent from /datum/action/cooldown/spell/set_click_ability() to the caster: (datum/action/cooldown/spell/spell)
SPELL_CANCEL_ACTIVATIONSame as spell_cancel_cast, as they're able to be used interchangeably
COMSIG_MOB_CAST_SPELLSent from /datum/action/cooldown/spell/cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on)
COMSIG_SPELL_CASTSent from /datum/action/cooldown/spell/cast() to the spell: (atom/cast_on)
COMSIG_SPELL_AFTER_CASTSent from /datum/action/cooldown/spell/after_cast() to the spell: (atom/cast_on)
COMSIG_SPELL_CAST_RESETSent from /datum/action/cooldown/spell/reset_spell_cooldown() to the spell: ()
COMSIG_SPELL_PROJECTILE_HITSent from /datum/action/cooldown/spell/pointed/projectile/on_cast_hit: (atom/firer, atom/target, atom/hit, angle, hit_limb)
COMSIG_SPELL_AOE_ON_CASTSent from /datum/action/cooldown/spell/aoe/cast: (list/atoms_affected, atom/caster)
COMSIG_SPELL_CONE_ON_CASTSent from /datum/action/cooldown/spell/cone/cast: (list/atoms_affected, atom/caster)
COMSIG_SPELL_CONE_ON_LAYER_EFFECTSent from /datum/action/cooldown/spell/cone/do_cone_effects: (list/atoms_affected, atom/caster, level)
COMSIG_SPELL_TOUCH_HAND_HITSent from /datum/action/cooldown/spell/touch/do_hand_hit: (atom/hit, mob/living/carbon/caster, obj/item/melee/touch_attack/hand)
COMSIG_MOB_ENTER_JAUNTSent from datum/action/cooldown/spell/jaunt/enter_jaunt, to the mob jaunting: (obj/effect/dummy/phased_mob/jaunt, datum/action/cooldown/spell/spell)
COMSIG_MOB_EJECTED_FROM_JAUNTSet from /obj/effect/dummy/phased_mob after the mob is ejected from its contents: (obj/effect/dummy/phased_mob/jaunt, mob/living/unjaunter)
COMSIG_MOB_AFTER_EXIT_JAUNTSent from datum/action/cooldown/spell/jaunt/exit_jaunt, after the mob exited jaunt: (datum/action/cooldown/spell/spell)
COMSIG_LIVING_BLOOD_CRAWL_PRE_CONSUMEDSent from/datum/action/cooldown/spell/jaunt/bloodcrawl/slaughter_demon/try_enter_jaunt, to any unconscious / critical mobs being dragged when the jaunter enters blood: (datum/action/cooldown/spell/jaunt/bloodcrawl/crawl, mob/living/jaunter, obj/effect/decal/cleanable/blood)
COMSIG_LIVING_BLOOD_CRAWL_CONSUMEDSent from/datum/action/cooldown/spell/jaunt/bloodcrawl/slaughter_demon/consume_victim, to the victim being consumed by the slaughter demon. (datum/action/cooldown/spell/jaunt/bloodcrawl/crawl, mob/living/jaunter)
COMPONENT_STOP_CONSUMPTIONReturn at any point to stop the bloodcrawl "consume" process from continuing.
COMSIG_ITEM_IMBUE_SOULSent from /datum/action/cooldown/spell/lichdom/cast(), to the item being imbued: (datum/action/cooldown/spell/spell, mob/user)
COMPONENT_BLOCK_IMBUEReturn to stop the cast and prevent the soul imbue
COMSIG_ATOM_MAGICALLY_UNLOCKEDSent from /datum/action/cooldown/spell/aoe/knock/cast(), to every nearby turf (for connect loc): (datum/action/cooldown/spell/aoe/knock/spell, mob/living/caster)
COMSIG_ITEM_MARK_RETRIEVALSent from /datum/action/cooldown/spell/summonitem/cast(), to the item being marked for recall: (datum/action/cooldown/spell/spell, mob/user)
COMPONENT_BLOCK_MARK_RETRIEVALReturn to stop the cast and prevent the item from being marked
COMSIG_MAGIC_RECALLWhen an object is retrieved by a magic recall spell. This will apply to all containers, mobs, etc. that are pulled by the spell.
COMSIG_ITEM_MAGICALLY_CHARGEDSent from /datum/action/cooldown/spell/charge/cast(), to the item in hand being charged: (datum/action/cooldown/spell/spell, mob/user)
COMPONENT_ITEM_CHARGEDReturn if an item was successfuly recharged
COMPONENT_ITEM_BURNT_OUTReturn if the item had a negative side effect occur while recharging
COMSIG_MIND_CHECK_ANTAG_RESOURCESent from /datum/action/cooldown/spell/proc/can_cast_spell(), to the mind of the mob casting the spell: (datum/mind, resource_flag, resource_amount)
COMSIG_MIND_SPEND_ANTAG_RESOURCESent from /datum/action/cooldown/spell/proc/consume_resource(), to the mind of the mob casting the spell: (datum/mind, list/resource_costs)

Define Details

COMPONENT_BLOCK_IMBUE

Return to stop the cast and prevent the soul imbue

COMPONENT_BLOCK_MARK_RETRIEVAL

Return to stop the cast and prevent the item from being marked

COMPONENT_ITEM_BURNT_OUT

Return if the item had a negative side effect occur while recharging

COMPONENT_ITEM_CHARGED

Return if an item was successfuly recharged

COMPONENT_STOP_CONSUMPTION

Return at any point to stop the bloodcrawl "consume" process from continuing.

COMSIG_ATOM_MAGICALLY_UNLOCKED

Sent from /datum/action/cooldown/spell/aoe/knock/cast(), to every nearby turf (for connect loc): (datum/action/cooldown/spell/aoe/knock/spell, mob/living/caster)

COMSIG_ITEM_IMBUE_SOUL

Sent from /datum/action/cooldown/spell/lichdom/cast(), to the item being imbued: (datum/action/cooldown/spell/spell, mob/user)

COMSIG_ITEM_MAGICALLY_CHARGED

Sent from /datum/action/cooldown/spell/charge/cast(), to the item in hand being charged: (datum/action/cooldown/spell/spell, mob/user)

COMSIG_ITEM_MARK_RETRIEVAL

Sent from /datum/action/cooldown/spell/summonitem/cast(), to the item being marked for recall: (datum/action/cooldown/spell/spell, mob/user)

COMSIG_LIVING_BLOOD_CRAWL_CONSUMED

Sent from/datum/action/cooldown/spell/jaunt/bloodcrawl/slaughter_demon/consume_victim, to the victim being consumed by the slaughter demon. (datum/action/cooldown/spell/jaunt/bloodcrawl/crawl, mob/living/jaunter)

COMSIG_LIVING_BLOOD_CRAWL_PRE_CONSUMED

Sent from/datum/action/cooldown/spell/jaunt/bloodcrawl/slaughter_demon/try_enter_jaunt, to any unconscious / critical mobs being dragged when the jaunter enters blood: (datum/action/cooldown/spell/jaunt/bloodcrawl/crawl, mob/living/jaunter, obj/effect/decal/cleanable/blood)

COMSIG_MAGIC_RECALL

When an object is retrieved by a magic recall spell. This will apply to all containers, mobs, etc. that are pulled by the spell.

COMSIG_MIND_CHECK_ANTAG_RESOURCE

Sent from /datum/action/cooldown/spell/proc/can_cast_spell(), to the mind of the mob casting the spell: (datum/mind, resource_flag, resource_amount)

COMSIG_MIND_SPEND_ANTAG_RESOURCE

Sent from /datum/action/cooldown/spell/proc/consume_resource(), to the mind of the mob casting the spell: (datum/mind, list/resource_costs)

COMSIG_MOB_AFTER_EXIT_JAUNT

Sent from datum/action/cooldown/spell/jaunt/exit_jaunt, after the mob exited jaunt: (datum/action/cooldown/spell/spell)

COMSIG_MOB_BEFORE_SPELL_CAST

Sent from /datum/action/cooldown/spell/before_cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on)

COMSIG_MOB_CAST_SPELL

Sent from /datum/action/cooldown/spell/cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on)

COMSIG_MOB_EJECTED_FROM_JAUNT

Set from /obj/effect/dummy/phased_mob after the mob is ejected from its contents: (obj/effect/dummy/phased_mob/jaunt, mob/living/unjaunter)

COMSIG_MOB_ENTER_JAUNT

Sent from datum/action/cooldown/spell/jaunt/enter_jaunt, to the mob jaunting: (obj/effect/dummy/phased_mob/jaunt, datum/action/cooldown/spell/spell)

COMSIG_MOB_SPELL_ACTIVATED

Sent from /datum/action/cooldown/spell/set_click_ability() to the caster: (datum/action/cooldown/spell/spell)

COMSIG_SPELL_AFTER_CAST

Sent from /datum/action/cooldown/spell/after_cast() to the spell: (atom/cast_on)

COMSIG_SPELL_AOE_ON_CAST

Sent from /datum/action/cooldown/spell/aoe/cast: (list/atoms_affected, atom/caster)

COMSIG_SPELL_BEFORE_CAST

Sent from /datum/action/cooldown/spell/before_cast() to the spell: (atom/cast_on)

COMSIG_SPELL_CAST

Sent from /datum/action/cooldown/spell/cast() to the spell: (atom/cast_on)

COMSIG_SPELL_CAST_RESET

Sent from /datum/action/cooldown/spell/reset_spell_cooldown() to the spell: ()

COMSIG_SPELL_CONE_ON_CAST

Sent from /datum/action/cooldown/spell/cone/cast: (list/atoms_affected, atom/caster)

COMSIG_SPELL_CONE_ON_LAYER_EFFECT

Sent from /datum/action/cooldown/spell/cone/do_cone_effects: (list/atoms_affected, atom/caster, level)

COMSIG_SPELL_PROJECTILE_HIT

Sent from /datum/action/cooldown/spell/pointed/projectile/on_cast_hit: (atom/firer, atom/target, atom/hit, angle, hit_limb)

COMSIG_SPELL_TOUCH_HAND_HIT

Sent from /datum/action/cooldown/spell/touch/do_hand_hit: (atom/hit, mob/living/carbon/caster, obj/item/melee/touch_attack/hand)

SPELL_CANCEL_ACTIVATION

Same as spell_cancel_cast, as they're able to be used interchangeably

SPELL_CANCEL_CAST

Return to prevent the spell cast from continuing.

SPELL_NO_FEEDBACK

Return from before cast signals to prevent the spell from giving off sound or invocation.

SPELL_NO_IMMEDIATE_COOLDOWN

Return from before cast signals to prevent the spell from going on cooldown before aftercast.