/tg/ Station 13 - Modules - TypesVar Details - Proc Details

bullet_intercepting

Component which allows an equipped item to occasionally absorb a projectile.

Vars

active_slotsSlots in which effect can be active
block_chanceChance to intercept a projectile
block_chargesNumber of things we can block before we delete ourself (stop being able to block)
block_typeType of bullet to intercept
on_interceptedCallback called when we catch a projectile
wearerPerson currently wearing us

Procs

on_parent_equippedCalled when item changes slots, check if we're in a valid location to take bullets
on_unequippedCalled when item is unequipped, stop tracking bullets
on_wearer_deletedCalled when wearer is deleted, stop tracking them
on_wearer_shotCalled when wearer is shot, check if we're going to block the hit

Var Details

active_slots

Slots in which effect can be active

block_chance

Chance to intercept a projectile

block_charges

Number of things we can block before we delete ourself (stop being able to block)

block_type

Type of bullet to intercept

on_intercepted

Callback called when we catch a projectile

wearer

Person currently wearing us

Proc Details

on_parent_equipped

Called when item changes slots, check if we're in a valid location to take bullets

on_unequipped

Called when item is unequipped, stop tracking bullets

on_wearer_deleted

Called when wearer is deleted, stop tracking them

on_wearer_shot

Called when wearer is shot, check if we're going to block the hit