Space Station 13 - Baystation 12 - Modules - TypesVar Details - Proc Details

item

Vars

anomaly_protectionA value denoting how much this item should protect against the effects of anomalies when worn.
equip_delayOptional delay for /mob/living/carbon/human/equip_to_slot_if_possible to do_after before succeeding
equip_delay_flagsFlags to use for do_after when equip_delay is set

Procs

afterattackCalled when the item is in the active hand and another atom is clicked and resolve_attackby() returns FALSE. This is generally called by ClickOn().
apply_hit_effectCalled when a weapon is used to make a successful melee attack on a mob. Generally called by the target's attack() proc.
attackCalled when a mob is clicked while the item is in the active hand and the interaction is not valid for surgery. Generally called by the mob's attackby() proc.
attack_selfCalled when the item is in the active hand and clicked, or the activate held object verb is used.
droppedCalled whenever an item is removed from a slot, container, or anything else.
equip_delay_afterVirtual for behavior to do after successful do_after if equip_delay is set
equip_delay_beforeVirtual for behavior to do before do_after if equip_delay is set
resolve_attackbyCalled when the item is in the active hand and another atom is clicked. This is generally called by ClickOn().

Var Details

anomaly_protection

A value denoting how much this item should protect against the effects of anomalies when worn.

equip_delay

Optional delay for /mob/living/carbon/human/equip_to_slot_if_possible to do_after before succeeding

equip_delay_flags

Flags to use for do_after when equip_delay is set

Proc Details

afterattack

Called when the item is in the active hand and another atom is clicked and resolve_attackby() returns FALSE. This is generally called by ClickOn().

Parameters:

Should have no return value.

apply_hit_effect

Called when a weapon is used to make a successful melee attack on a mob. Generally called by the target's attack() proc.

Parameters:

Returns boolean to indicate whether or not damage was dealt.

attack

Called when a mob is clicked while the item is in the active hand and the interaction is not valid for surgery. Generally called by the mob's attackby() proc.

Parameters:

Returns boolean to indicate whether the item usage was successful or not.

attack_self

Called when the item is in the active hand and clicked, or the activate held object verb is used.

Parameters:

Should have no return value.

dropped

Called whenever an item is removed from a slot, container, or anything else.

equip_delay_after

Virtual for behavior to do after successful do_after if equip_delay is set

equip_delay_before

Virtual for behavior to do before do_after if equip_delay is set

resolve_attackby

Called when the item is in the active hand and another atom is clicked. This is generally called by ClickOn().

Parameters:

Returns boolean to indicate whether the attack call was handled or not.