toggle_bite 
Vars | |
| 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. |
|---|---|
Procs | |
| 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. |
| 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. |
| remove_bite_bonuses | Removes 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:
- head - The head bodypart to apply bonuses to
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:
- loser - The mob that lost the organ
- organ_lost - The organ that was removed
remove_bite_bonuses
Removes bite bonuses from the head if they were applied by this action.
Arguments:
- head - The head bodypart to remove bonuses from