feat(furling): make ability numbers BepInEx-configurable
Adds FurlingConfig.cs, following the established per-race pattern: one Configuration Manager section per tier ability (Passive Combat, Master of Shadows, The Wickerman, Grave Robber, The King Is Dead, In the Mist). No keybinds section - every Furling ability is passive, triggered by tier, biome, or combat events rather than a key press. Defaults match the previous hardcoded constants exactly. "Dance of the Dead" (tier 4+) has no numeric knob and stays untouched: it doubles craft yield by crafting a literal second copy rather than multiplying a configurable amount. Also fixes a latent truncation bug found while wiring the trophy drop multiplier: it was applied as `amount *= 2` (int), which would have truncated any non-integer multiplier a player configured (e.g. 1.5x rounding down every time). Now computed as Mathf.RoundToInt(amount * multiplier). Config sections stay bound alphabetically by race (Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi) in RacesOfValheim.Awake().
This commit is contained in:
parent
6755c263f3
commit
4b382e7fad
4 changed files with 107 additions and 17 deletions
|
|
@ -31,6 +31,7 @@ namespace RacesOfValheim
|
|||
DraughConfig.Bind(Config);
|
||||
DvergarConfigManagement.Bind(Config);
|
||||
FenrirConfig.Bind(Config);
|
||||
FurlingConfig.Bind(Config);
|
||||
SkadiConfig.Bind(Config);
|
||||
harmony.PatchAll();
|
||||
gameObject.AddComponent<FenrirRace>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue