/tg/ Station 13 - Modules - Types — Var Details - Proc Details

toggle_bite

Vars

bite_bonuses_appliedPrevents biting from stacking with fang bonuses - we use this to track whether we've applied our own bonuses or if a fang organ is providing them so we know whether to remove them if the fangs are removed or if we deactivate bite mode.

Procs

ActivateActivates bite mode, enabling biting attacks instead of normal unarmed attacks. Applies damage bonuses matching a fang organ if no fangs are present. Registers signals to handle dynamic organ changes (fang implants/removals).
DeactivateDeactivates bite mode, restoring normal unarmed attacks.
DestroyCleanup proc - ensures bite mode is deactivated before the action is destroyed
add_bite_bonusesApplies bite bonuses to the head, matching the bonuses a baseline fang organ grants. These bonuses are: +4/+7 damage, +10 effectiveness, +0.5 pummeling, and sharpness.
check_removed_organSignal handler for when an organ is removed from the mob. If a fang organ is removed while bite mode is active, apply our bonuses (since the fangs are no longer providing them) and switch to listening for organ gain.
remove_bite_bonusesRemoves bite bonuses from the head if they were applied by this action.

Var Details

bite_bonuses_applied

Prevents biting from stacking with fang bonuses - we use this to track whether we've applied our own bonuses or if a fang organ is providing them so we know whether to remove them if the fangs are removed or if we deactivate bite mode.

Proc Details

Activate

Activates bite mode, enabling biting attacks instead of normal unarmed attacks. Applies damage bonuses matching a fang organ if no fangs are present. Registers signals to handle dynamic organ changes (fang implants/removals).

Deactivate

Deactivates bite mode, restoring normal unarmed attacks.

Destroy

Cleanup proc - ensures bite mode is deactivated before the action is destroyed

add_bite_bonuses

Applies bite bonuses to the head, matching the bonuses a baseline fang organ grants. These bonuses are: +4/+7 damage, +10 effectiveness, +0.5 pummeling, and sharpness.

Arguments:

check_removed_organ

Signal handler for when an organ is removed from the mob. If a fang organ is removed while bite mode is active, apply our bonuses (since the fangs are no longer providing them) and switch to listening for organ gain.

Arguments:

remove_bite_bonuses

Removes bite bonuses from the head if they were applied by this action.

Arguments: