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:
parent
629a534bc3
commit
8595b7108a
6 changed files with 166 additions and 49 deletions
|
|
@ -120,14 +120,14 @@ namespace RacesOfValheim
|
|||
if (!DraughRace.IsDraugh()) return;
|
||||
|
||||
// Apply specific damage modifiers for Draugh
|
||||
// -20% damage received from slash, pierce, blunt
|
||||
hit.m_damage.m_blunt *= 0.8f;
|
||||
hit.m_damage.m_slash *= 0.8f;
|
||||
hit.m_damage.m_pierce *= 0.8f;
|
||||
|
||||
// +50% damage received from fire, spirit
|
||||
hit.m_damage.m_fire *= 1.5f;
|
||||
hit.m_damage.m_spirit *= 1.5f;
|
||||
float physResist = DraughConfig.PhysicalResistMultiplier.Value;
|
||||
hit.m_damage.m_blunt *= physResist;
|
||||
hit.m_damage.m_slash *= physResist;
|
||||
hit.m_damage.m_pierce *= physResist;
|
||||
|
||||
float fireSpiritWeakness = DraughConfig.FireSpiritWeaknessMultiplier.Value;
|
||||
hit.m_damage.m_fire *= fireSpiritWeakness;
|
||||
hit.m_damage.m_spirit *= fireSpiritWeakness;
|
||||
|
||||
// Stage 4: Undead Fortitude (Poison Immunity)
|
||||
if (BossProgressionManager.GetCurrentProgressionState() >= 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue