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

clothing_fov_visor

An element to add a FOV trait to the wearer, removing it when an item is unequipped, but only as long as the visor is up.

Vars

fov_angleWhat's the FOV angle of the trait we're applying to the wearer
is_wornBecause of clothing code not being too good, we need keep track whether we are worn.
visor_upKeeping track of the visor of our clothing.
wearerThe current wearer

Procs

on_dropOn dropping the item, remove the FoV trait if visor was down.
on_equipOn equipping the item, add the FoV trait if visor isn't up.
on_visor_toggleOn toggling the visor, we may want to add or remove FOV trait from the wearer.

Var Details

fov_angle

What's the FOV angle of the trait we're applying to the wearer

is_worn

Because of clothing code not being too good, we need keep track whether we are worn.

visor_up

Keeping track of the visor of our clothing.

wearer

The current wearer

Proc Details

on_drop

On dropping the item, remove the FoV trait if visor was down.

on_equip

On equipping the item, add the FoV trait if visor isn't up.

on_visor_toggle

On toggling the visor, we may want to add or remove FOV trait from the wearer.