feat(aswid): let players toggle the Vampiric Aura, move Devour off I

The Vampiric Aura had no on/off switch - it always drains/executes
nearby targets in every form. I now toggles it (AswidRace.AuraEnabled,
on by default), matching the existing toggle pattern already used for
Devour.

Devour's own toggle moves off I to make room and stays on by default;
its keybind is unbound (KeyCode.None) rather than removed outright, so
it remains a real Configuration Manager entry for anyone who wants to
bind their own key to it.
This commit is contained in:
kanym 2026-08-09 17:11:25 +02:00
commit 9e4778def7
3 changed files with 22 additions and 3 deletions

View file

@ -824,12 +824,18 @@ namespace RacesOfValheim
private float damageTickTimer = 0f;
/// <summary>Toggled by AswidConfig.ToggleAuraKey (Aswid_PlayerUpdate_Patch); on by default.</summary>
public static bool AuraEnabled = true;
/// <summary>
/// The Vampiric Aura is passive: it drains on its own, in every form, with no key to hold and
/// no icon or message of its own. The form only decides how hard it bites.
/// no icon or message of its own beyond the on/off toggle. The form only decides how hard it
/// bites.
/// </summary>
private void HandleVampiricAura()
{
if (!AuraEnabled) return;
damageTickTimer += Time.deltaTime;
if (damageTickTimer < AswidConfig.AuraTickInterval.Value) return;