feat(aswid): running water covers rivers and lakes; sway on boats

Open water now means any water: swimming in it, or flying over a metre
or more of it, sea, river or lake. Standing on anything solid stays safe,
so docks, bridges and wading do not count. On a boat there is still no
burn or drain, but the camera keeps swaying. 'Ocean Only' restores the
sea-only behaviour, and the settings say Open Water instead of Open Sea.

Also rewrites the README's per-boss Aswid section from the code: it
listed stats, unlocks and an aura that no longer exist.
This commit is contained in:
kanym 2026-10-26 15:49:05 +01:00
commit c76341af0d
12 changed files with 85 additions and 57 deletions

View file

@ -905,7 +905,7 @@ namespace RacesOfValheim
}
/// <summary>
/// The seasick camera: a slow roll while the open sea is hurting the Aswid. Applied after
/// The seasick camera: a slow roll while the Aswid is out on the water, on a boat too. Applied after
/// vanilla has settled the camera's rotation for the frame, as a roll around the view axis,
/// so it never moves where the player aims - only how the horizon sits.
/// </summary>
@ -917,7 +917,7 @@ namespace RacesOfValheim
public static void Postfix(float dt, ref Quaternion rot)
{
bool on = AswidRace.AtSea && AswidConfig.SeaCameraSway.Value && AswidRace.IsAswid() &&
bool on = AswidRace.OnWater && AswidConfig.SeaCameraSway.Value && AswidRace.IsAswid() &&
Player.m_localPlayer != null && !Player.m_localPlayer.IsDead();
// Eased in and out over about a second, so leaving the sea does not snap the horizon.