feat(draugh): make abilities BepInEx-configurable; reorder Skadi sections

Adds DraughConfig.cs, following the SkadiConfig/AswidConfig pattern: one
Configuration Manager section per tier ability (Passive Combat, Sunken
Menace, Rotting Edge, Undead Fortitude, North Wind, Undying Will, Swarm Of
Terror, Steal Their Breath). No keybinds section - every Draugh ability
triggers off a game event (parry, hit taken/landed, death) rather than a
key press. Defaults match the previous hardcoded constants exactly.

Also reorders SkadiConfig so Passive Combat binds right after Keybinds,
matching the Aswid/Draugh section order (Keybinds, then Passive Combat,
then the rest).

Config sections stay bound alphabetically by race (Aswid, Draugh, Skadi)
in RacesOfValheim.Awake().
This commit is contained in:
kanym 2026-08-06 13:42:44 +02:00
commit 8595b7108a
6 changed files with 166 additions and 49 deletions

View file

@ -98,6 +98,10 @@ namespace RacesOfValheim
FaderFormKey = config.Bind(keybinds, "Fader Form", new KeyboardShortcut(KeyCode.J),
KeyDesc("Transform into (or revert from) the Skeleton Dragon, tier 8.", keyOrder--));
const string combat = "Skadi - Passive Combat";
BonusFrostDamagePerState = config.Bind(combat, "Bonus Frost Damage Per State", 2f,
new ConfigDescription("Flat frost damage added to every hit the player lands, multiplied by the current progression state.", new AcceptableValueRange<float>(0f, 10f)));
const string spell = "Skadi - Cold Spell";
SpellStaminaCost = config.Bind(spell, "Stamina Cost", 20f,
new ConfigDescription("Stamina spent per cast.", new AcceptableValueRange<float>(0f, 100f)));
@ -122,10 +126,6 @@ namespace RacesOfValheim
AuraTickInterval = config.Bind(aura, "Tick Interval", 1f,
new ConfigDescription("Seconds between aura damage ticks.", new AcceptableValueRange<float>(0.1f, 5f)));
const string combat = "Skadi - Passive Combat";
BonusFrostDamagePerState = config.Bind(combat, "Bonus Frost Damage Per State", 2f,
new ConfigDescription("Flat frost damage added to every hit the player lands, multiplied by the current progression state.", new AcceptableValueRange<float>(0f, 10f)));
const string scale = "Skadi - Dragon Form Scale";
DrakeScale = config.Bind(scale, "Drake Scale", 0.9f,
new ConfigDescription("Model scale while transformed into the Drake (tier 3-4).", new AcceptableValueRange<float>(0.1f, 2f)));