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
|
|
@ -594,16 +594,16 @@ namespace RacesOfValheim
|
|||
if (attacker != null && attacker == Player.m_localPlayer && SkeletonRace.IsSkeleton())
|
||||
{
|
||||
// Auto Stun
|
||||
if (rules.AutoStunFirstHit && Time.time - lastStunTime > 5f)
|
||||
if (rules.AutoStunFirstHit && Time.time - lastStunTime > SkeletonConfig.AutoStunCooldown.Value)
|
||||
{
|
||||
hit.m_staggerMultiplier = 100f; // Force stagger
|
||||
hit.m_staggerMultiplier = SkeletonConfig.AutoStunStaggerMultiplier.Value; // Force stagger
|
||||
lastStunTime = Time.time;
|
||||
}
|
||||
|
||||
// Poison Attacks
|
||||
if (rules.PoisonAttacks)
|
||||
{
|
||||
hit.m_damage.m_poison += 20f; // Add flat 20 poison damage
|
||||
hit.m_damage.m_poison += SkeletonConfig.PoisonAttackBonus.Value;
|
||||
}
|
||||
|
||||
// Lifesteal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue