feat(dvergur): add the Dvergur race scaffold
An eighth race built on the existing per-race pattern: a MonoBehaviour driver registered from Awake, a progression table keyed on the boss state, an SE_Stats carrier, and Harmony patches for the individual perks. The helmet slot stays free. Whatever the player equips keeps every one of its stats and only its mesh is swapped for the dvergr hood, which is the Skeleton's helmet handling turned into a replacement rather than a plain hide. Every percentage the spec left open lives in DvergurConfig as a named value and is marked TODO there, so tuning the race never means touching the logic. The knobs are static readonly rather than const so that switching a perk off with a zero does not fold its guard into dead code.
This commit is contained in:
parent
4cd452d187
commit
3ec51aeb45
10 changed files with 1365 additions and 1 deletions
|
|
@ -81,6 +81,12 @@ namespace RacesOfValheim
|
|||
{
|
||||
// Managed externally in TrolPatches.cs
|
||||
}
|
||||
else if (race == DvergurConfig.RaceId)
|
||||
{
|
||||
// The hood itself is rebuilt by the VisEquipment patch; this keeps the shrunken
|
||||
// silhouette and the hidden helmet asserted between those rebuilds.
|
||||
DvergurVisuals.Apply(m_player);
|
||||
}
|
||||
else
|
||||
{
|
||||
RevertAllVisuals();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue