toggle_bite 
Vars | |
| bite_bonuses_applied | Prevents biting from stacking with cat tongue bonuses - we use this to track whether we've applied our own bonuses or if the cat tongue is providing them so we know whether to remove them if the cat tongue is removed or if we deactivate bite mode. |
|---|---|
Procs | |
| Activate | Activates bite mode, enabling biting attacks instead of normal unarmed attacks. Applies damage bonuses matching cat tongue if no cat tongue is present. Registers signals to handle dynamic organ changes (tongue 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 cat tongue bonuses. 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 cat tongue is removed while bite mode is active, apply our bonuses (since cat tongue is 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 cat tongue bonuses - we use this to track whether we've applied our own bonuses or if the cat tongue is providing them so we know whether to remove them if the cat tongue is 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 cat tongue if no cat tongue is present. Registers signals to handle dynamic organ changes (tongue 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 cat tongue bonuses. 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 cat tongue is removed while bite mode is active, apply our bonuses (since cat tongue is 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