item

Vars | |
| 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 |
Procs | |
| 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(). |
| 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. |
| 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. |
| attack_self | Called when the item is in the active hand and clicked, or the activate held object verb is used. |
| 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(). |
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:
target- The atom that was clicked on.user- The mob clicking on the target.proximity_flag(boolean) - TRUE is this was called on something adjacent to or in the inventory ofuser.click_parameters- List of click parameters. See BYOND'sCLick()documentation.
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:
target- The mob struck with the weapon.user- The mob using the weapon.hit_zone- The mob targeting zone that should be struck with the weapon.
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:
M- The mob that was clicked.user- The mob that clicked the target.target_zone- The mob targeting zoneuserhad selected when clicking.animate(boolean) - Whether or not to show the attack animation.
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:
user- The mob using the item.
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:
A- The atom that was clicked.user- The mob using the item.click_params- List of click parameters. See BYOND'sCLick()documentation.
Returns boolean to indicate whether the attack call was handled or not.