chore(release): v1.4.21 - dragon form multiplayer sync, Sverm Ravager networking, dorsal spine fix

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Ferdinando 2026-09-23 11:56:09 +02:00
commit e7325e4d25
12 changed files with 303 additions and 10 deletions

View file

@ -600,6 +600,18 @@ namespace RacesOfValheim
return Vector3.one * SkadiConfig.DrakeScale.Value; // Drake
}
// Same lookup, keyed by the prefab name the ZDO actually carries ("RacesOfValheim_SkadiForm"),
// so Skadi_MultiplayerVisuals_Patch can size a remote observer's copy of the form the same way
// the transforming player's own client does. Without this the remote instance was left at the
// prefab's raw Visual scale (1x) no matter which form or config value was in play - Moder's
// ModerScale nerf, in particular, only ever applied on the transformed player's own screen.
public static Vector3 GetFormScaleForPrefab(string prefabName)
{
if (prefabName == "Dragon") return Vector3.one * SkadiConfig.ModerScale.Value;
if (prefabName == "Fader") return Vector3.one * SkadiConfig.FaderScale.Value;
return Vector3.one * SkadiConfig.DrakeScale.Value; // Hatchling
}
private IEnumerator TransformRoutine(SkadiProgression.FormRules rules)
{
isTransformingSequence = true;