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

r_leg

Vars

left_leg_mask_cacheThe associated list of all the left leg mask keys associated to their cached left leg masks. It's static, so it's shared between all the left legs there is. Be careful. Why? Both legs share the same layer for rendering, and since we don't want to do redraws on each dir changes, we're doing it with a mask instead, which we cache for efficiency reasons.
left_leg_mask_keyWe store this here to generate our icon key more easily.

Procs

generate_masked_right_legThis proc serves as a way to ensure that right legs don't overlap above left legs when their dir is WEST on a mob.
on_owner_paralysis_gainProc to react to the owner gaining the TRAIT_PARALYSIS_R_LEG trait.
on_owner_paralysis_lossProc to react to the owner losing the TRAIT_PARALYSIS_R_LEG trait.

Var Details

left_leg_mask_cache

The associated list of all the left leg mask keys associated to their cached left leg masks. It's static, so it's shared between all the left legs there is. Be careful. Why? Both legs share the same layer for rendering, and since we don't want to do redraws on each dir changes, we're doing it with a mask instead, which we cache for efficiency reasons.

left_leg_mask_key

We store this here to generate our icon key more easily.

Proc Details

generate_masked_right_leg

This proc serves as a way to ensure that right legs don't overlap above left legs when their dir is WEST on a mob.

It's using the left_leg_mask_cache to avoid generating a new mask when unnecessary, which means that there needs to be one for the proc to return anything.

Arguments:

Returns the /image of the right leg that was masked, or null if the mask didn't exist.

on_owner_paralysis_gain

Proc to react to the owner gaining the TRAIT_PARALYSIS_R_LEG trait.

on_owner_paralysis_loss

Proc to react to the owner losing the TRAIT_PARALYSIS_R_LEG trait.