feat(aswid): make abilities and special attacks BepInEx-configurable
Adds AswidConfig.cs, following the SkadiConfig pattern: one Configuration Manager section per topic (Keybinds, Passive Combat, Vampiric Aura, Superhuman Senses, Eclipse, Devour, Domination), covering every tunable number and all five ability keybinds (Bat Form, Mist Form, Eclipse, Tame, Toggle Devour). Defaults match the previous hardcoded constants exactly. Also fixes a real mismatch found along the way: the tame hover-text hardcoded "[K] Tame" while the key that actually triggered taming was U. Both now read the same configured Tame key, so the hint stays correct if it's rebound. Config sections are bound alphabetically by race (Aswid before Skadi) in RacesOfValheim.Awake(), since Configuration Manager's category list follows bind order.
This commit is contained in:
parent
7708599ff9
commit
629a534bc3
6 changed files with 178 additions and 37 deletions
|
|
@ -24,6 +24,10 @@ namespace RacesOfValheim
|
|||
|
||||
private void Awake() {
|
||||
Instance = this;
|
||||
// Bound in alphabetical order by race, since Configuration Manager's category list
|
||||
// follows bind order rather than sorting itself - confirmed from the Skadi/Aswid
|
||||
// ordering in-game. Keep new races' Bind() calls slotted in alphabetically here.
|
||||
AswidConfig.Bind(Config);
|
||||
SkadiConfig.Bind(Config);
|
||||
harmony.PatchAll();
|
||||
gameObject.AddComponent<FenrirRace>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue