feat(fenrir): make ability numbers and keybinds BepInEx-configurable
Adds FenrirConfig.cs, following the established per-race pattern: one Configuration Manager section per topic (Keybinds, Passive Combat, Form Buffs, and one per transformation form - Fenring, Cultist, Wolf, Ulv), covering every attack's damage/radius/push-force number across all four independent form behaviors, plus the four transform/howl keybinds. Defaults match the previous hardcoded constants exactly. Only the four transform/howl keys are rebindable - unlike Skadi's dragon forms, which share one unified attack-button scheme, each of Fenrir's four forms is an independent MonoBehaviour with its own hardcoded mouse reads, so making all eleven attack buttons rebindable was left out as a much larger, separately-scoped change. The Form Buffs section opens with a non-editable note (the CustomDrawer trick from ConfigurationManagerAttributes) explaining that those specific values are baked into status effects once at mod startup and need a relog to pick up a change - everything else reads live. Config sections stay bound alphabetically by race (Aswid, Draugh, Dvergar, Fenrir, Skadi) in RacesOfValheim.Awake().
This commit is contained in:
parent
3607d7323d
commit
6755c263f3
5 changed files with 265 additions and 54 deletions
|
|
@ -32,27 +32,27 @@ namespace RacesOfValheim
|
|||
|
||||
public static float GetArmorBonus(int state)
|
||||
{
|
||||
return 3f * state;
|
||||
return FenrirConfig.ArmorBonusPerState.Value * state;
|
||||
}
|
||||
|
||||
public static float GetDamageBonus(int state)
|
||||
{
|
||||
return 5f * state;
|
||||
return FenrirConfig.DamageBonusPerState.Value * state;
|
||||
}
|
||||
|
||||
public static float GetFallDamageModifier(int state)
|
||||
{
|
||||
return Mathf.Clamp(-0.1f * state, -1f, 0f);
|
||||
return Mathf.Clamp(-FenrirConfig.FallDamageReductionPerState.Value * state, -1f, 0f);
|
||||
}
|
||||
|
||||
public static float GetSpeedModifier(int state)
|
||||
{
|
||||
return 0.03f * state;
|
||||
return FenrirConfig.SpeedBonusPerState.Value * state;
|
||||
}
|
||||
|
||||
public static float GetJumpModifier(int state)
|
||||
{
|
||||
return 0.03f * state;
|
||||
return FenrirConfig.JumpBonusPerState.Value * state;
|
||||
}
|
||||
|
||||
// --- Transformation Rules for Keys ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue