byond - Modules - TypesVar Details - Proc Details

shield

Vars

activeIs the shield currently active
affectedShielded mob
coverPercentage damage The shield intercepts.
intercept_damage_cbCallback to block damage entirely
layerShield priority layer
shield_flagsBehavior flags
slot_flagsWhat slots the parent item provides its shield effects in
transfer_damage_cbCallback to transfer damage to the shield

Procs

activate_with_userActivates shield effects
deactivate_with_userDeactivates shield effects
get_shield_status_modifierCalculates a modifier to the shield coverage based on user or parent conditions
item_intercept_attackDamage intercept calculation
item_pure_block_chanceBlock chance calculation
on_attack_cb_shields_callSignal handler for incoming damage, directs to the right callback proc
setup_callbacksSets up the correct callbacks based on flagged behavior
shield_affect_userToggles shield effects for the user
shield_detach_from_userDetaches shield from the user
shield_droppedHandles unequipping the shield
shield_equippedHandles equipping the shield
toggle_shieldToggles the mitigation on or off when already equipped
transfer_damage_to_parentApplies damage to parent item

Var Details

active

Is the shield currently active

affected

Shielded mob

cover

Percentage damage The shield intercepts.

intercept_damage_cb

Callback to block damage entirely

layer

Shield priority layer

shield_flags

Behavior flags

slot_flags

What slots the parent item provides its shield effects in

transfer_damage_cb

Callback to transfer damage to the shield

Proc Details

activate_with_user

Activates shield effects

deactivate_with_user

Deactivates shield effects

get_shield_status_modifier

Calculates a modifier to the shield coverage based on user or parent conditions

item_intercept_attack

Damage intercept calculation

item_pure_block_chance

Block chance calculation

on_attack_cb_shields_call

Signal handler for incoming damage, directs to the right callback proc

setup_callbacks

Sets up the correct callbacks based on flagged behavior

shield_affect_user

Toggles shield effects for the user

shield_detach_from_user

Detaches shield from the user

shield_dropped

Handles unequipping the shield

shield_equipped

Handles equipping the shield

toggle_shield

Toggles the mitigation on or off when already equipped

transfer_damage_to_parent

Applies damage to parent item