RacesOfValheim/JotunnModStub/Dvergur
kanym 8df7681cea fix(dvergur): tint the skin from UpdateColors, and raise the height
The tint was applied the way the race-selection menu appears to do it, with
VisEquipment.SetSkinColor followed by UpdateColors, and had no visible effect.
That pair is not what colours a player: UpdateColors rebuilds the body material
from Valheim own state each refresh, so a tint only survives if it is written
after it runs. Every race here that visibly changes colour already has a
postfix on UpdateColors setting _SkinColor on the material, and the SetSkinColor
calls in the menu are decorative on their own. The Dvergur now follows the Trol.

Reading the race from the ZDO with a m_customData fallback and no local-player
check covers the main-menu preview and the first spawn frame, where
Player.m_localPlayer is still null. Nothing needs saving or restoring either,
since the tint stops being applied the moment the race changes.

Beard and hair go pale to match; the hood hides most of the hair but the beard
shows.

Height goes from 0.70 to 0.78. The spec asked for at least -30% but that read as
too small beside a human on screen.
2026-08-02 23:08:12 +02:00
..
DvergurAbilities.cs feat(dvergur): add the Dvergur race scaffold 2026-08-02 21:45:44 +02:00
DvergurConfig.cs fix(dvergur): tint the skin from UpdateColors, and raise the height 2026-08-02 23:08:12 +02:00
DvergurPatches.cs fix(dvergur): tint the skin from UpdateColors, and raise the height 2026-08-02 23:08:12 +02:00
DvergurProgression.cs feat(dvergur): add the Dvergur race scaffold 2026-08-02 21:45:44 +02:00
DvergurRace.cs fix(dvergur): correct the health malus, body scale and hood 2026-08-02 22:58:11 +02:00
DvergurStatusEffects.cs feat(dvergur): add the Dvergur race scaffold 2026-08-02 21:45:44 +02:00
DvergurVisuals.cs fix(dvergur): tint the skin from UpdateColors, and raise the height 2026-08-02 23:08:12 +02:00