chore(release): v1.5.4 - Sverm troops keep their own place around the player and the boat

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Ferdinando 2026-10-03 08:11:05 +02:00
commit 9a3ab78666
6 changed files with 152 additions and 3 deletions

View file

@ -523,6 +523,26 @@ namespace RacesOfValheim
/// </summary>
public static readonly float TroopAlertRange = 25f;
/// <summary>
/// How far from its player a following troop stands, and how far it may fall behind before it
/// walks back to its place. Vanilla BaseAI.Follow sends every follower to the player's exact
/// position and stops it at three metres, so a squad piled onto one point, shoved each other
/// and shoved the player. See SvermTroopFollow.
/// </summary>
public static readonly float TroopFollowRadius = 4f;
/// <summary>How far past its place a troop may drift before it moves again - the hysteresis
/// that keeps a squad from jittering.</summary>
public static readonly float TroopFollowSlack = 3f;
/// <summary>How far from a boat's hull a following troop keeps, measured off the hull's
/// bounds. Close enough to be a bodyguard, far enough not to push the ship around.</summary>
public static readonly float TroopShipDistance = 5f;
/// <summary>Past this many metres from its player a following troop gives up the walk and
/// goes home to its nest.</summary>
public static readonly float TroopFollowGiveUp = 30f;
/// <summary>How long a troop outlives the nest that hatched it, in seconds.</summary>
public static readonly float TroopWitherSeconds = 60f;