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:
parent
9149d3f0b5
commit
5c41d80cae
14 changed files with 173 additions and 3 deletions
|
|
@ -56,6 +56,19 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<bool> PierceWeaknessEnabled;
|
||||
public static ConfigEntry<float> PierceWeakness;
|
||||
|
||||
// ─── Running Water ─────────────────────────────────────────────────────
|
||||
// Lore says a vampire cannot cross running water unaided (Dagaz's report). Swimming costs
|
||||
// more, and the open sea burns, swimming or flying; standing on a boat is being carried,
|
||||
// which the lore allows. The camera sway is a per-player comfort choice and stays local
|
||||
// (ConfigSync's "camera sway" key part).
|
||||
public static ConfigEntry<bool> RunningWaterEnabled;
|
||||
public static ConfigEntry<float> SwimStaminaMultiplier;
|
||||
public static ConfigEntry<float> SeaHealthLossPerSecond;
|
||||
public static ConfigEntry<float> SeaStaminaDrainPerSecond;
|
||||
public static ConfigEntry<float> SeaHealthFloor;
|
||||
public static ConfigEntry<bool> SeaCameraSway;
|
||||
public static ConfigEntry<float> SeaCameraSwayStrength;
|
||||
|
||||
// ─── Bat Form ────────────────────────────────────────────────────────────
|
||||
// The bat flies on the same directed flight as the Skadi's drakes (DirectedFlight.cs),
|
||||
// with its own numbers. It used to fly on vanilla's debug-fly flag: 50 m/s, free, blind
|
||||
|
|
@ -207,6 +220,22 @@ namespace RacesOfValheim
|
|||
PierceWeakness = config.Bind(weak, "Pierce Weakness Amount", 0.2f,
|
||||
new ConfigDescription("Extra pierce damage taken. 0.2 = 20% more.", new AcceptableValueRange<float>(0f, 2f)));
|
||||
|
||||
const string water = "Aswid - Running Water";
|
||||
RunningWaterEnabled = config.Bind(water, "Running Water", true,
|
||||
new ConfigDescription("Swimming costs more stamina, and the open sea (the Ocean biome, over deep water) hurts you while you swim or fly over it. Standing on or steering a boat protects you.", null));
|
||||
SwimStaminaMultiplier = config.Bind(water, "Swim Stamina Multiplier", 2f,
|
||||
new ConfigDescription("Multiplies the stamina swimming costs, anywhere. At 0 stamina the game's own drowning starts. Around 5 and up, swimming any distance is no longer possible.", new AcceptableValueRange<float>(1f, 10f)));
|
||||
SeaHealthLossPerSecond = config.Bind(water, "Open Sea Health Loss Per Second", 1f,
|
||||
new ConfigDescription("Health the open sea burns away each second.", new AcceptableValueRange<float>(0f, 20f)));
|
||||
SeaStaminaDrainPerSecond = config.Bind(water, "Open Sea Stamina Drain Per Second", 2f,
|
||||
new ConfigDescription("Stamina the open sea drains each second, on top of what swimming or flying costs.", new AcceptableValueRange<float>(0f, 30f)));
|
||||
SeaHealthFloor = config.Bind(water, "Open Sea Health Floor", 0.1f,
|
||||
new ConfigDescription("The sea's burn stops at this fraction of your max health. Drowning, once your stamina runs out, has no floor.", new AcceptableValueRange<float>(0f, 1f)));
|
||||
SeaCameraSway = config.Bind(water, "Camera Sway", true,
|
||||
new ConfigDescription("The camera rolls gently while the open sea is hurting you, as if seasick. Local: each player chooses for themselves.", null));
|
||||
SeaCameraSwayStrength = config.Bind(water, "Camera Sway Strength", 1f,
|
||||
new ConfigDescription("How far the camera rolls. 1 is about 4 degrees. Local.", new AcceptableValueRange<float>(0f, 3f)));
|
||||
|
||||
const string batform = "Aswid - Bat Form";
|
||||
// Same controls as the Skadi's drake: aim with the camera, W beats forward, Shift
|
||||
// sprints, S beats backwards, and letting go hovers briefly before gliding down.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue