feat(skeleton): make ability numbers BepInEx-configurable, add fire VFX toggle
Adds SkeletonConfig.cs, following the established per-race pattern: one Configuration Manager section per topic (Passive Combat, Fire Aura, Resurrection). No keybinds section - every Skeleton ability is passive, triggered by tier and combat events rather than a key press. Defaults match the previous hardcoded constants exactly. The per-tier progression table itself (max health bonus, lifesteal percent, max summons) stays untouched, same boundary drawn for every other race's progression table. Also adds a client-side "Head Fire VFX Enabled" toggle under a new Skeleton - Visuals section, gating both places the burning-skull effect is triggered (SkeletonRace for the local player, ZdoVisualSync for every other skeleton-race player this client renders) - disabling it stops the flame rendering for this client only, without changing what other players see. Config sections stay bound alphabetically by race (Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton) in RacesOfValheim.Awake().
This commit is contained in:
parent
4b382e7fad
commit
0a3f82e955
6 changed files with 90 additions and 14 deletions
|
|
@ -39,7 +39,7 @@ namespace RacesOfValheim
|
|||
// template: SEMan.AddStatusEffect clones what it is given and adds the clone, so
|
||||
// anything written to the template afterwards reaches nobody. That is why the Moder
|
||||
// regeneration bonus never applied either.
|
||||
m_healthRegenMultiplier = rules.EnhancedRegen ? 1.5f : 1.0f;
|
||||
m_healthRegenMultiplier = rules.EnhancedRegen ? SkeletonConfig.EnhancedRegenHealthMultiplier.Value : 1.0f;
|
||||
|
||||
m_mods = new List<HitData.DamageModPair>
|
||||
{
|
||||
|
|
@ -62,9 +62,9 @@ namespace RacesOfValheim
|
|||
base.Setup(character);
|
||||
m_name = "Resurrection Cooldown";
|
||||
m_tooltip = "Your skeletal body is too weak to resurrect again right now.";
|
||||
m_icon = Jotunn.Managers.PrefabManager.Cache.GetPrefab<GameObject>("TrophySkeletonPoison")?.GetComponent<ItemDrop>()?.m_itemData.GetIcon()
|
||||
m_icon = Jotunn.Managers.PrefabManager.Cache.GetPrefab<GameObject>("TrophySkeletonPoison")?.GetComponent<ItemDrop>()?.m_itemData.GetIcon()
|
||||
?? Jotunn.Managers.PrefabManager.Cache.GetPrefab<GameObject>("TrophySkeleton")?.GetComponent<ItemDrop>()?.m_itemData.GetIcon();
|
||||
m_ttl = 300f; // 5 minutes
|
||||
m_ttl = SkeletonConfig.ResurrectionCooldown.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue