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
|
|
@ -53,7 +53,7 @@ namespace RacesOfValheim
|
|||
if (enslaveTime > 0)
|
||||
{
|
||||
DateTime time = new DateTime(enslaveTime);
|
||||
if ((DateTime.Now - time).TotalSeconds >= 60.0)
|
||||
if ((DateTime.Now - time).TotalSeconds >= AswidConfig.ThrallLifetime.Value)
|
||||
{
|
||||
// Time's up! Kill the thrall.
|
||||
HitData hit = new HitData();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue