feat(aswid): running water weakness and a seasick camera

Swimming costs double stamina, scaled on vanilla's own swim charge so
its drowning check does the rest at high settings. Over deep water in
the Ocean, swimming or flying, the Aswid loses health and stamina each
second; a boat protects. A gentle camera roll plays while the sea hurts,
kept local through ConfigSync so a server cannot force it on anyone.
This commit is contained in:
kanym 2026-10-26 15:26:25 +01:00
commit 5c41d80cae
14 changed files with 173 additions and 3 deletions

View file

@ -478,7 +478,7 @@ namespace RacesOfValheim
bool fireNow = AswidRace.HasFireWeakness(state);
bool fireGone = AswidConfig.FireWeaknessEnabled.Value && !fireNow;
if (AswidConfig.SunlightEnabled.Value || AswidConfig.FireWeaknessEnabled.Value || AswidConfig.PierceWeaknessEnabled.Value)
if (AswidConfig.SunlightEnabled.Value || AswidConfig.FireWeaknessEnabled.Value || AswidConfig.PierceWeaknessEnabled.Value || AswidConfig.RunningWaterEnabled.Value)
sb.AppendLine(ModText.Get("rov_compendium_aswid_weaknesses"));
if (AswidConfig.SunlightEnabled.Value)
sb.AppendLine(ModText.Get("rov_compendium_aswid_weakness_sunlight",
@ -493,6 +493,11 @@ namespace RacesOfValheim
sb.AppendLine(ModText.Get("rov_compendium_aswid_weakness_fire_gone"));
if (AswidConfig.PierceWeaknessEnabled.Value)
sb.AppendLine(ModText.Get("rov_compendium_aswid_weakness_pierce", Mathf.RoundToInt(AswidConfig.PierceWeakness.Value * 100f)));
if (AswidConfig.RunningWaterEnabled.Value)
sb.AppendLine(ModText.Get("rov_compendium_aswid_weakness_water",
AswidConfig.SwimStaminaMultiplier.Value.ToString("0.#"),
AswidConfig.SeaHealthLossPerSecond.Value.ToString("0.#"),
AswidConfig.SeaStaminaDrainPerSecond.Value.ToString("0.#")));
sb.AppendLine(ModText.Get("rov_compendium_aswid_vampiric_aura_passive_toggle"));
sb.AppendLine(ModText.Get("rov_compendium_aswid_always_active_every_form_with", auraRadiusDay, auraRadiusNight, auraExecute));