warvulture
This commit is contained in:
parent
70bb263609
commit
4559e0b9e1
14 changed files with 455 additions and 48 deletions
33
JotunnModStub/RaceClawsConfig.cs
Normal file
33
JotunnModStub/RaceClawsConfig.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using UnityEngine;
|
||||
using BepInEx.Configuration;
|
||||
|
||||
namespace RacesOfValheim
|
||||
{
|
||||
/// <summary>
|
||||
/// The one keybind and the one duration behind the Claws skill (RaceClaws.cs), shared by every
|
||||
/// race that grows a pair rather than bound separately per race - there is only one skill here,
|
||||
/// not one per race wearing it. Bound once, from RacesOfValheim.Awake(), alongside the other
|
||||
/// non-race shared config (WarVultureConfig, ButlerConfig, ...).
|
||||
///
|
||||
/// The default is K rather than O: O was the first pick, but Fenrir already owns it for Howl
|
||||
/// (FenrirConfig.HowlKey), and colliding the two on one client would leave one of them dead
|
||||
/// without any error to say why. Either can still be moved onto the other from Configuration
|
||||
/// Manager if that turns out to be wanted after all.
|
||||
/// </summary>
|
||||
public static class RaceClawsConfig
|
||||
{
|
||||
public static ConfigEntry<KeyboardShortcut> ActivateKey;
|
||||
public static ConfigEntry<float> DurationSeconds;
|
||||
|
||||
public static void Bind(ConfigFile config)
|
||||
{
|
||||
const string keybinds = "Race Claws - Keybinds";
|
||||
ActivateKey = config.Bind(keybinds, "Grow Claws", new KeyboardShortcut(KeyCode.K),
|
||||
new ConfigDescription("Grows the claws (Aswid: Claws of the Beast, Fenrir: Cursed Claws) for the duration below. Pressed again mid-window, restarts the timer instead of stacking."));
|
||||
|
||||
const string skill = "Race Claws - Skill";
|
||||
DurationSeconds = config.Bind(skill, "Duration", 120f,
|
||||
new ConfigDescription("Seconds the claws stay grown before retracting on their own. The remaining time shows under the claws' own icon in the buff bar.", new AcceptableValueRange<float>(10f, 600f)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue