chore(release): v1.5.3

Version bumped in manifest.json, the packaging manifest and PluginVersion.
Valheim 1.0's new creatures for the Aswid and the Draugh (seal, moose,
Elaking, Jotun, Barka, Deep North Goblin and every Dvergr), the Elaking
Hair Bundle in the blood refinery, and the Skeleton choosing its look at
the barber.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Ferdinando 2026-10-01 08:19:36 +02:00
commit b9ac02fe50
15 changed files with 267 additions and 15 deletions

View file

@ -97,6 +97,37 @@ namespace RacesOfValheim
return BossProgressionManager.GetCurrentProgressionState();
}
public const string LookZdoKey = "RacesOfValheim_SkeletonLook";
public const string LookDataKey = "SkeletonLook";
/// <summary>
/// The body this player chose at the barber, "" if they never did. Read the same way as
/// the race: the ZDO for anyone on the network, m_customData for the menu preview.
/// </summary>
public static string GetLook(Player player)
{
if (player == null) return "";
ZNetView nview = player.GetComponent<ZNetView>();
if (nview != null && nview.IsValid())
{
return nview.GetZDO().GetString(LookZdoKey, "");
}
if (player.m_customData != null && player.m_customData.TryGetValue(LookDataKey, out string look))
{
return look;
}
return "";
}
/// <summary>The model prefab to wear for this player at this tier, look applied.</summary>
public static string GetModel(Player player, int state)
{
return SkeletonProgression.ResolveModel(state, GetLook(player));
}
/// <summary>
/// Fire sources in preference order. BUILDING PIECES ONLY, and that is the bug fix.
///