Merge remote-tracking branch 'origin/main' into localisation

This commit is contained in:
kanym 2026-11-02 17:33:22 +01:00
commit 42c1e7ddd3
22 changed files with 436 additions and 109 deletions

View file

@ -448,15 +448,31 @@ namespace RacesOfValheim
CheckIdleKiln();
// A harvest is in progress: wait for the drops to land, then gather them and replant.
Job job;
if (m_farmSpot != null)
{
m_job = Time.time < m_farmReadyAt
job = Time.time < m_farmReadyAt
? new Job { Kind = "wait", Point = transform.position, Label = "Waiting" }
: new Job { Kind = "farm_finish", Point = m_farmSpot.Value, Label = "Gathering" };
return;
}
// A delivery is a job like any other and gets its own clock. It used to return early here
// and inherit the load's deadline: a slow trip, or a fight on the way, left it already late,
// so it timed out on the first tick, was planned again, timed out again, every frame - the
// drone froze with wood in hand next to the kiln (10790 timeouts in one player's log).
else if (m_payload.Count > 0) job = PlanDelivery(anchor.Value);
else job = PlanWork(anchor.Value);
if (m_payload.Count > 0) { m_job = PlanDelivery(anchor.Value); return; }
if (job != null && (m_job == null || m_job.Kind != job.Kind || m_job.Target != job.Target))
{
m_jobDeadline = Time.time + JobTimeout;
}
if (m_job != null && !ReferenceEquals(m_job, job)) Release(m_job.Claim);
if (job != null) Claim(job.Claim);
m_job = job;
}
private Job PlanWork(Vector3 anchor)
{
// The forge has no clock: a smelter holds its ore indefinitely and puts its own output on
// the floor, so PlanRescue would ask a question whose answer is always no. The smith is a
@ -472,15 +488,7 @@ namespace RacesOfValheim
// base: repairs, the fields, and last the tidying of the entry chest.
Job job = PlanRescue();
job = job ?? PlanCollect() ?? PlanFuel() ?? PlanLoad();
job = job ?? PlanRepair(anchor.Value) ?? PlanFarm(anchor.Value) ?? PlanSort();
if (job != null && (m_job == null || m_job.Kind != job.Kind || m_job.Target != job.Target))
{
m_jobDeadline = Time.time + JobTimeout;
}
if (m_job != null && !ReferenceEquals(m_job, job)) Release(m_job.Claim);
if (job != null) Claim(job.Claim);
m_job = job;
return job ?? PlanRepair(anchor) ?? PlanFarm(anchor) ?? PlanSort();
}
/// <summary>
@ -609,7 +617,7 @@ namespace RacesOfValheim
Kind = "collect",
Target = best.Id,
Claim = best.Id,
Point = best.Position,
Point = ApproachPoint(best),
Hurry = true,
Label = "Saving the food",
};
@ -640,7 +648,7 @@ namespace RacesOfValheim
Kind = "collect",
Target = best.Id,
Claim = best.Id,
Point = best.Position,
Point = ApproachPoint(best),
Label = "Collecting",
};
}
@ -770,20 +778,37 @@ namespace RacesOfValheim
// coal, so gating the delivery on free slots sent the servant back to the chest with
// the coal it had just fetched - and then PlanFuel sent it out for the same coal again,
// forever. AcceptsAnything already asks the right question of both doors.
// A station it could not reach is in the penalty box: asking it again straight away
// is the same failed trip.
bool unreachable = IsPenalised(target);
ButlerStation station = StationById(target);
if (station != null && station.Alive && station.Operable && AcceptsAnything(station))
if (station != null && station.Alive && station.Operable && AcceptsAnything(station) && !unreachable)
{
return new Job
{
Kind = "deposit_station",
Target = target,
Point = station.Position,
Point = ApproachPoint(station),
Label = "Loading " + Describe(),
};
}
// The station is gone, full or cold. The goods are ours to put back, not to hold.
m_nview.GetZDO().Set(KeyTarget, ZDOID.None);
// Out of reach, the load goes back where it came from: the Eldividarkista's wood stays
// fuel instead of landing in the entry chest and being sorted away into storage.
Container source = unreachable ? ContainerById(m_nview.GetZDO().GetZDOID(KeySource)) : null;
if (source != null && !IsMarkedOff(source) && !IsPenalised(ZdoOf(source)) && HasRoomFor(source))
{
return new Job
{
Kind = "deposit",
Target = ZdoOf(source),
Point = source.transform.position,
Label = "Storing " + Describe(),
};
}
}
Container chest = ChestForProduct();
@ -816,7 +841,7 @@ namespace RacesOfValheim
{
Kind = "deposit_station",
Target = consumer.Id,
Point = consumer.Position,
Point = ApproachPoint(consumer),
Label = "Loading " + Describe(),
};
}
@ -1664,10 +1689,22 @@ namespace RacesOfValheim
lines.Add($"[RoV drone] {distance:0}m: '{drone.Status}' job {(drone.m_job != null ? drone.m_job.Kind : "none")} " +
$"carry {drone.PayloadCount()} fight {drone.m_fighting} vanilla target {targetText} " +
$"alerted {drone.m_ai.IsAlerted()} flying {drone.m_character.IsFlying()} owner {drone.m_nview.IsOwner()}");
// The other half of what holds a fight: the 12 m sweep, and how long the linger has left.
Character near = BaseAI.FindClosestEnemy(drone.m_character, drone.transform.position, FightRange);
string nearText = near != null
? $"{Utils.GetPrefabName(near.gameObject)} {Vector3.Distance(near.transform.position, drone.transform.position):0}m"
: "none";
lines.Add($"[RoV drone] fight left {Mathf.Max(0f, drone.m_fightUntil - Time.time):0.0}s, " +
$"closest enemy {nearText}, in reach {(target != null && drone.InFightReach(target))}");
}
if (nearest == null) lines.Add("[RoV drone] no worker drone within 60m");
else lines.AddRange(nearest.SortReport());
else
{
lines.AddRange(nearest.SortReport());
lines.AddRange(nearest.StationReport());
}
foreach (string line in lines)
{
@ -1676,6 +1713,59 @@ namespace RacesOfValheim
}
}
/// <summary>Why a station is (or is not) fed: what the last scan saw, the wood chest, and every
/// smelter, hearth or fermenter within the radius - and the ones just past it, by how much.</summary>
private IEnumerable<string> StationReport()
{
Vector3? anchor = Anchor;
if (anchor == null) { yield return "[RoV station] no anchor"; yield break; }
float radius = AlfarNexusConfig.NexusRadius.Value + m_radiusBonus;
yield return $"[RoV station] anchor {Vector3.Distance(transform.position, anchor.Value):0}m from drone, " +
$"radius {radius:0}, scanned {Time.time - m_scannedAt:0}s ago, {m_stations.Count} stations, {m_chests.Count} chests";
if (m_wood == null) yield return "[RoV station] no Eldividarkista in range (or it is open, or holds the sigil)";
else
{
var wood = new List<string>();
Inventory inventory = m_wood.GetInventory();
if (inventory != null)
{
foreach (ItemDrop.ItemData item in inventory.GetAllItems())
{
wood.Add(item.m_dropPrefab != null ? $"{item.m_dropPrefab.name}x{item.m_stack}" : $"{item.m_shared.m_name}(no prefab)");
}
}
yield return $"[RoV station] Eldividarkista {Vector3.Distance(m_wood.transform.position, anchor.Value):0}m from anchor, " +
$"open {m_wood.IsInUse()}, penalty {IsPenalised(ZdoOf(m_wood))}, holds [{string.Join(", ", wood.ToArray())}]";
}
foreach (ButlerStation station in m_stations)
{
if (!station.Alive) { yield return "[RoV station] (a station that is gone)"; continue; }
Container chest;
string material = FindMaterialFor(station, out chest);
string from = material == null ? "nothing" : $"{material} from {(chest == m_wood ? "Eldividarkista" : "entry")}";
yield return $"[RoV station] {Utils.GetPrefabName(station.Behaviour.gameObject)} " +
$"{Vector3.Distance(station.Position, anchor.Value):0}m: operable {station.Operable} free {station.FreeSlots} " +
$"work {station.HasWork} wood {station.Accepts("Wood")} penalty {IsPenalised(station.Id)} " +
$"claimed {ClaimedByOther(station.Id)} fuel {station.FuelPrefab ?? "-"}/{station.FuelWanted} | load: {from}";
}
// A station the scan cannot see because it stands past the edge.
List<Piece> pieces = AllPiecesField != null ? AllPiecesField.GetValue(null) as List<Piece> : null;
if (pieces == null) yield break;
foreach (Piece piece in pieces)
{
if (piece == null) continue;
float distance = Vector3.Distance(piece.transform.position, anchor.Value);
if (distance <= radius || distance > radius + 15f) continue;
if (ButlerStation.From(piece.gameObject) == null) continue;
yield return $"[RoV station] {Utils.GetPrefabName(piece.gameObject)} {distance:0}m: OUTSIDE the radius by {distance - radius:0.0}m";
}
}
private IEnumerable<string> SortReport()
{
if (m_entry == null) { yield return "[RoV sort] no entry chest in range"; yield break; }
@ -1708,6 +1798,38 @@ namespace RacesOfValheim
}
}
/// <summary>
/// Where the drone flies to serve a station: beside it, a metre past its colliders on the side
/// the drone comes from. Vanilla lifts a flyer's goal to m_flyAltitudeMin over the ground under
/// it (BaseAI.MoveTo, IL), and under a charcoal kiln's origin that is inside the dome: the drone
/// pressed against the stone, never came within ArriveDistance, and the kiln went into the
/// penalty box (snakey's log, "Could not reach collect target"). Beside it is open air, and it
/// stays under a roof indoors, where aiming over the top would not. The loading and the sweep
/// still work from the station's own position.
/// </summary>
private Vector3 ApproachPoint(ButlerStation station)
{
Vector3 centre = station.Position;
bool any = false;
Bounds bounds = new Bounds(centre, Vector3.zero);
foreach (Collider collider in station.Behaviour.GetComponentsInChildren<Collider>())
{
if (collider == null || !collider.enabled || collider.isTrigger) continue;
if (any) bounds.Encapsulate(collider.bounds);
else { bounds = collider.bounds; any = true; }
}
if (!any) return centre;
Vector3 away = transform.position - bounds.center;
away.y = 0f;
if (away.sqrMagnitude < 0.01f) away = station.Transform.forward;
float reach = Mathf.Max(bounds.extents.x, bounds.extents.z) + 1f;
Vector3 point = bounds.center + away.normalized * reach;
point.y = centre.y;
return point;
}
private bool MoveToPoint(float dt, Vector3 point, float distance, bool run)
{
if (m_ai == null || MoveToMethod == null) return true; // cannot walk: act in place

View file

@ -363,8 +363,22 @@ namespace RacesOfValheim
Scan(anchor.Value);
ExpirePenalties();
if (m_payload.Count > 0) { m_job = PlanDelivery(anchor.Value); return; }
// A delivery gets its own clock like any other job. Returning early here left it with the
// load's deadline: a slow trip, or a fight on the way, made it late before it started, and
// it timed out and was planned again on every tick, frozen with the goods in hand.
Job job;
if (m_payload.Count > 0) job = PlanDelivery(anchor.Value);
else job = PlanWork();
if (job != null && (m_job == null || m_job.Kind != job.Kind || m_job.Target != job.Target))
{
m_jobDeadline = Time.time + JobTimeout;
}
m_job = job;
}
private Job PlanWork()
{
// The forge has no clock: a smelter holds its ore indefinitely and puts its own output on
// the floor, so PlanRescue would ask a question whose answer is always no. The smith is a
// four-state machine and the cook is a five-state one, and that is the whole of the
@ -376,13 +390,7 @@ namespace RacesOfValheim
// in return, because FuelWanted is zero for a station with no work: an empty furnace asks
// for no coal, gets filled, and only then becomes worth stoking.
Job job = m_family == ButlerFamily.Kitchen ? PlanRescue() : null;
job = job ?? PlanCollect() ?? PlanFuel() ?? PlanLoad();
if (job != null && (m_job == null || m_job.Kind != job.Kind || m_job.Target != job.Target))
{
m_jobDeadline = Time.time + JobTimeout;
}
m_job = job;
return job ?? PlanCollect() ?? PlanFuel() ?? PlanLoad();
}
/// <summary>
@ -634,8 +642,10 @@ namespace RacesOfValheim
// coal, so gating the delivery on free slots sent the servant back to the chest with
// the coal it had just fetched - and then PlanFuel sent it out for the same coal again,
// forever. AcceptsAnything already asks the right question of both doors.
// A station it could not reach is in the penalty box: asking it again straight away
// is the same failed trip.
ButlerStation station = StationById(target);
if (station != null && station.Alive && station.Operable && AcceptsAnything(station))
if (station != null && station.Alive && station.Operable && AcceptsAnything(station) && !IsPenalised(target))
{
return new Job
{

View file

@ -45,6 +45,9 @@ namespace RacesOfValheim
public static ConfigEntry<float> FullFormJumpBonus;
public static ConfigEntry<float> FullFormFallDamageReduction;
public static ConfigEntry<float> WolfFormSpeedBonus;
public static ConfigEntry<float> UlvFormSpeedBonus;
public static ConfigEntry<float> FenringDamageReduction;
public static ConfigEntry<float> CultistExtraDamageTaken;
public static ConfigEntry<float> WolfFormFallDamageReduction;
public static ConfigEntry<float> FormStaminaRegenMultiplier;
public static ConfigEntry<float> FormStaminaDrainReduction;
@ -138,14 +141,24 @@ namespace RacesOfValheim
const string buffs = "Fenrir - Form Buffs";
BindNote(config, buffs, "Note: these values need a relog to take effect.");
FullFormSpeedBonus = config.Bind(buffs, "Full Form Speed Bonus", 1.0f,
new ConfigDescription("Speed multiplier bonus while in Fenring or Cultist form.", new AcceptableValueRange<float>(0f, 3f)));
// Each form has a job once all three are unlocked (Lexsonn's suggestion): the Ulv
// travels, the Fenring holds the line, the Cultist burns. The speed keys were renamed
// from "Full Form Speed Bonus" and "Wolf Form Speed Bonus" so a saved .cfg cannot keep
// the old order, where the Fenring outran the Ulv.
FullFormSpeedBonus = config.Bind(buffs, "Fenring And Cultist Speed Bonus", 0.5f,
new ConfigDescription("Speed multiplier bonus while in Fenring or Cultist form. 0.5 = 50% faster.", new AcceptableValueRange<float>(0f, 3f)));
FullFormJumpBonus = config.Bind(buffs, "Full Form Jump Bonus", 1.0f,
new ConfigDescription("Jump multiplier bonus while in Fenring or Cultist form.", new AcceptableValueRange<float>(0f, 3f)));
FullFormFallDamageReduction = config.Bind(buffs, "Full Form Fall Damage Reduction", 1.0f,
new ConfigDescription("Fall damage reduction while in Fenring or Cultist form (1 = immune).", new AcceptableValueRange<float>(0f, 1f)));
WolfFormSpeedBonus = config.Bind(buffs, "Wolf Form Speed Bonus", 0.5f,
new ConfigDescription("Speed multiplier bonus while in Wolf or Ulv form.", new AcceptableValueRange<float>(0f, 3f)));
WolfFormSpeedBonus = config.Bind(buffs, "Wolf Speed Bonus", 0.5f,
new ConfigDescription("Speed multiplier bonus while in Wolf form, the G form before Moder.", new AcceptableValueRange<float>(0f, 3f)));
UlvFormSpeedBonus = config.Bind(buffs, "Ulv Speed Bonus", 1.0f,
new ConfigDescription("Speed multiplier bonus while in Ulv form. The fastest form by default: the one to travel in.", new AcceptableValueRange<float>(0f, 3f)));
FenringDamageReduction = config.Bind(buffs, "Fenring Damage Reduction", 0.3f,
new ConfigDescription("Share of every hit the Fenring shrugs off. 0.3 = 30% less damage taken.", new AcceptableValueRange<float>(0f, 0.9f)));
CultistExtraDamageTaken = config.Bind(buffs, "Cultist Extra Damage Taken", 0.25f,
new ConfigDescription("How much harder hits land on the Cultist. 0.25 = 25% more damage taken.", new AcceptableValueRange<float>(0f, 2f)));
WolfFormFallDamageReduction = config.Bind(buffs, "Wolf Form Fall Damage Reduction", 0.5f,
new ConfigDescription("Fall damage reduction while in Wolf or Ulv form.", new AcceptableValueRange<float>(0f, 1f)));
FormStaminaRegenMultiplier = config.Bind(buffs, "Stamina Regen Multiplier", 1.3f,

View file

@ -76,7 +76,7 @@ namespace RacesOfValheim {
cultistCdSE.m_icon = fenringTrophyIcon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(cultistCdSE, fixReference: false));
formBuffSE = ScriptableObject.CreateInstance<SE_Stats>();
formBuffSE = ScriptableObject.CreateInstance<SE_FenrirFormBuff>();
formBuffSE.name = "SE_FenrirForm";
formBuffSE.m_name = "$rov_se_fenrir_form_name";
formBuffSE.m_speedModifier = FenrirConfig.FullFormSpeedBonus.Value;
@ -87,7 +87,7 @@ namespace RacesOfValheim {
formBuffSE.m_icon = fenringTrophyIcon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(formBuffSE, fixReference: false));
cultistFormBuffSE = ScriptableObject.CreateInstance<SE_Stats>();
cultistFormBuffSE = ScriptableObject.CreateInstance<SE_FenrirFormBuff>();
cultistFormBuffSE.name = "SE_CultistForm";
cultistFormBuffSE.m_name = "$rov_se_fenrir_cultistform_name";
cultistFormBuffSE.m_speedModifier = FenrirConfig.FullFormSpeedBonus.Value;
@ -98,7 +98,7 @@ namespace RacesOfValheim {
cultistFormBuffSE.m_icon = fenringTrophyIcon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(cultistFormBuffSE, fixReference: false));
wolfFormBuffSE = ScriptableObject.CreateInstance<SE_Stats>();
wolfFormBuffSE = ScriptableObject.CreateInstance<SE_FenrirFormBuff>();
wolfFormBuffSE.name = "SE_WolfForm";
wolfFormBuffSE.m_name = "$rov_se_fenrir_wolfform_name";
wolfFormBuffSE.m_speedModifier = FenrirConfig.WolfFormSpeedBonus.Value;
@ -109,6 +109,16 @@ namespace RacesOfValheim {
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(wolfFormBuffSE, fixReference: false));
}
// Set on the live copy each time a form is taken, not on the registered template: the Wolf
// and the Ulv share SE_WolfForm but not a speed, and a changed value applies at the next
// transform instead of after a relog.
private static void SetFormBuff(StatusEffect se, float speedBonus, float damageTakenFactor)
{
if (!(se is SE_FenrirFormBuff buff)) return;
buff.m_speedModifier = speedBonus;
buff.m_damageTakenFactor = damageTakenFactor;
}
private void Update()
{
if (Player.m_localPlayer == null || EnvMan.instance == null) return;
@ -550,6 +560,7 @@ namespace RacesOfValheim {
Player.m_localPlayer.GetSEMan().AddStatusEffect("SE_WolfForm".GetStableHashCode(), true);
var se = Player.m_localPlayer.GetSEMan().GetStatusEffect("SE_WolfForm".GetStableHashCode());
if (se != null) se.m_ttl = ttl;
SetFormBuff(se, FenrirConfig.UlvFormSpeedBonus.Value, 1f);
Player.m_localPlayer.Message(MessageHud.MessageType.Center, ModText.Get("rov_msg_fenrir_are_ulv"));
}
else if (prefabName == "Wolf")
@ -558,6 +569,7 @@ namespace RacesOfValheim {
Player.m_localPlayer.GetSEMan().AddStatusEffect("SE_WolfForm".GetStableHashCode(), true);
var se = Player.m_localPlayer.GetSEMan().GetStatusEffect("SE_WolfForm".GetStableHashCode());
if (se != null) se.m_ttl = ttl;
SetFormBuff(se, FenrirConfig.WolfFormSpeedBonus.Value, 1f);
Player.m_localPlayer.Message(MessageHud.MessageType.Center, ModText.Get("rov_msg_fenrir_are_wolf"));
}
else if (prefabName == "Fenring_Cultist")
@ -566,6 +578,7 @@ namespace RacesOfValheim {
Player.m_localPlayer.GetSEMan().AddStatusEffect("SE_CultistForm".GetStableHashCode(), true);
var se = Player.m_localPlayer.GetSEMan().GetStatusEffect("SE_CultistForm".GetStableHashCode());
if (se != null) se.m_ttl = ttl;
SetFormBuff(se, FenrirConfig.FullFormSpeedBonus.Value, 1f + FenrirConfig.CultistExtraDamageTaken.Value);
Player.m_localPlayer.Message(MessageHud.MessageType.Center, ModText.Get("rov_msg_fenrir_are_cultist"));
}
else
@ -574,6 +587,7 @@ namespace RacesOfValheim {
Player.m_localPlayer.GetSEMan().AddStatusEffect("SE_FenrirForm".GetStableHashCode(), true);
var se = Player.m_localPlayer.GetSEMan().GetStatusEffect("SE_FenrirForm".GetStableHashCode());
if (se != null) se.m_ttl = ttl;
SetFormBuff(se, FenrirConfig.FullFormSpeedBonus.Value, 1f - FenrirConfig.FenringDamageReduction.Value);
Player.m_localPlayer.Message(MessageHud.MessageType.Center, ModText.Get("rov_msg_fenrir_are_fenring"));
}

View file

@ -22,6 +22,23 @@ namespace RacesOfValheim
}
}
/// <summary>
/// A form's buff, plus a scale on the hits it takes: the Fenring holds the line on less, the
/// Cultist pays for its fire with more. SEMan.OnDamaged runs in Character.RPC_Damage on the
/// owner's machine, ahead of armor and the health loss, so the scale reaches every hit,
/// whoever's machine the attacker is on.
/// </summary>
public class SE_FenrirFormBuff : SE_Stats
{
public float m_damageTakenFactor = 1f;
public override void OnDamaged(HitData hit, Character attacker)
{
base.OnDamaged(hit, attacker);
if (!Mathf.Approximately(m_damageTakenFactor, 1f)) hit.ApplyModifier(m_damageTakenFactor);
}
}
public class SE_FenrirCurse : SE_Stats
{
public override void Setup(Character character)

View file

@ -1,7 +1,7 @@
{
"name": "RacesOfValheim",
"description": "A Valheim mod that adds eleven custom playable races (Alfar, Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton, Sverm, Trenta, Trol) each with unique abilities, traits, race stations and a deep boss-driven progression system.",
"version_number": "1.6.6",
"version_number": "1.6.7",
"website_url": "",
"dependencies": [
"denikson-BepInExPack_Valheim-5.4.2333",

View file

@ -16,7 +16,7 @@ namespace RacesOfValheim
{
public const string PluginGUID = "com.nandor.racesofvalheim";
public const string PluginName = "Races Of Valheim";
public const string PluginVersion = "1.6.6";
public const string PluginVersion = "1.6.7";
private readonly Harmony harmony = new Harmony(PluginGUID);

View file

@ -45,21 +45,37 @@ namespace RacesOfValheim
// level for a short window past this before letting it start sinking.
public float LastPoweredTime { get; set; }
// The drake's numbers for DirectedFlightPatch. Base flight stays free on purpose - the
// drake arrives at the Elder, long before the player has the stamina pool to pay for
// simply staying airborne - so only the sprint costs anything.
public float TurnSpeed => SkadiConfig.FlightTurnSpeed.Value;
public float GlideSpeed => SkadiConfig.FlightGlideSpeed.Value;
public float BoostSpeed => SkadiConfig.FlightBoostSpeed.Value;
public float SprintSpeed => SkadiConfig.FlightSprintSpeed.Value;
public float ReverseSpeed => SkadiConfig.FlightReverseSpeed.Value;
// This form's numbers for DirectedFlightPatch. The Drake's base flight defaults to free on
// purpose - it arrives at the Elder, long before the player has the stamina pool to pay
// for simply staying airborne - so only its sprint costs anything. The Moder pays for
// every beat. The Fader never flies, so it falls back on the Drake's set unread.
private SkadiConfig.FormFlight Flight =>
formRules != null && formRules.Form == SkadiProgression.FormType.Moder ? SkadiConfig.ModerFlight : SkadiConfig.DrakeFlight;
public float TurnSpeed => Flight.TurnSpeed.Value;
public float GlideSpeed => Flight.GlideSpeed.Value;
public float BoostSpeed => Flight.BoostSpeed.Value;
public float SprintSpeed => Flight.SprintSpeed.Value;
public float ReverseSpeed => Flight.ReverseSpeed.Value;
// Climbing out of water is deliberately slower than a powered climb in open air - the
// wings are dragging themselves free, not racing.
public float LiftoffSpeed => SkadiConfig.FlightLiftoffSpeed.Value;
public float HoverSeconds => SkadiConfig.FlightHoverSeconds.Value;
public float PoweredStaminaPerSecond => 0f;
public float SprintStaminaPerSecond => SkadiConfig.FlightSprintStaminaPerSecond.Value;
public bool CanPower => true;
public float LiftoffSpeed => Flight.LiftoffSpeed.Value;
public float HoverSeconds => Flight.HoverSeconds.Value;
public float PoweredStaminaPerSecond => Flight.PoweredStaminaPerSecond.Value * EncumberedCostFactor();
public float SprintStaminaPerSecond => Flight.SprintStaminaPerSecond.Value * EncumberedCostFactor();
public bool CanPower => !(IsEncumbered() && TooHeavyToFly);
private bool TooHeavyToFly => Flight.Encumbered.Value == AswidConfig.EncumberedMode.Blocked;
private static bool IsEncumbered()
{
return Player.m_localPlayer != null && Player.m_localPlayer.IsEncumbered();
}
private float EncumberedCostFactor()
{
return IsEncumbered() ? 1f + Flight.EncumberedExtraCost.Value : 1f;
}
private SkadiProgression.FormRules formRules;
@ -171,7 +187,11 @@ namespace RacesOfValheim
(SkadiConfig.FlightToggleKey.Value.IsDownIgnoringHeldKeys() || RaceInput.PadAttackDown(1)) &&
formRules != null && formRules.Form != SkadiProgression.FormType.SkeletonDragon)
{
if (!isFlying && !isLanding)
if (!isFlying && !isLanding && IsEncumbered() && TooHeavyToFly)
{
Player.m_localPlayer.Message(MessageHud.MessageType.Center, ModText.Get("rov_msg_skadi_too_heavy_to_fly"));
}
else if (!isFlying && !isLanding)
{
isFlying = true;
LastPoweredTime = Time.time;

View file

@ -69,15 +69,38 @@ namespace RacesOfValheim
public static ConfigEntry<float> FaderSpinDamage;
public static ConfigEntry<float> FaderSpinRadius;
// ─── Directed flight (Drake/Moder) ────────────────────────────────────
public static ConfigEntry<float> FlightTurnSpeed;
public static ConfigEntry<float> FlightGlideSpeed;
public static ConfigEntry<float> FlightBoostSpeed;
public static ConfigEntry<float> FlightSprintSpeed;
public static ConfigEntry<float> FlightReverseSpeed;
public static ConfigEntry<float> FlightLiftoffSpeed;
public static ConfigEntry<float> FlightHoverSeconds;
public static ConfigEntry<float> FlightSprintStaminaPerSecond;
// ─── Dragon forms: flight and timing, one set per form ───────────────────
// One section for all three, as Dissolution asked for the bat's knobs on each form: the
// keys carry the form's name and an Order, so Configuration Manager lists Drake, then
// Moder, then Fader instead of mixing them alphabetically.
public class FormFlight
{
public ConfigEntry<float> TurnSpeed;
public ConfigEntry<float> GlideSpeed;
public ConfigEntry<float> BoostSpeed;
public ConfigEntry<float> SprintSpeed;
public ConfigEntry<float> ReverseSpeed;
public ConfigEntry<float> LiftoffSpeed;
public ConfigEntry<float> HoverSeconds;
public ConfigEntry<float> PoweredStaminaPerSecond;
public ConfigEntry<float> SprintStaminaPerSecond;
public ConfigEntry<AswidConfig.EncumberedMode> Encumbered;
public ConfigEntry<float> EncumberedExtraCost;
}
public class FormTiming
{
// -1 keeps the boss-tier table in SkadiProgression, so an untouched .cfg plays as before.
public ConfigEntry<float> MaxDuration;
public ConfigEntry<float> DurationPerState;
public ConfigEntry<float> Cooldown;
}
public static FormFlight DrakeFlight;
public static FormFlight ModerFlight;
public static FormTiming DrakeTiming;
public static FormTiming ModerTiming;
public static FormTiming FaderTiming;
public static void Bind(ConfigFile config)
{
@ -164,23 +187,69 @@ namespace RacesOfValheim
FaderSpinRadius = config.Bind(attacks, "Fader Spin Radius", 5f,
new ConfigDescription("Hit-sweep radius for the Skeleton Dragon's spin attack.", new AcceptableValueRange<float>(1f, 15f)));
const string flight = "Skadi - Directed Flight";
FlightTurnSpeed = config.Bind(flight, "Turn Speed", 120f,
new ConfigDescription("Degrees per second the dragon form turns to face its heading.", new AcceptableValueRange<float>(10f, 360f)));
FlightGlideSpeed = config.Bind(flight, "Glide Speed", 5f,
new ConfigDescription("Speed while gliding unpowered (no W/S held).", new AcceptableValueRange<float>(0f, 30f)));
FlightBoostSpeed = config.Bind(flight, "Boost Speed", 12f,
new ConfigDescription("Speed while holding W without sprinting.", new AcceptableValueRange<float>(0f, 50f)));
FlightSprintSpeed = config.Bind(flight, "Sprint Speed", 22f,
new ConfigDescription("Speed while holding W and Shift, stamina permitting.", new AcceptableValueRange<float>(0f, 60f)));
FlightReverseSpeed = config.Bind(flight, "Reverse Speed", 7f,
new ConfigDescription("Speed while beating backwards (S).", new AcceptableValueRange<float>(0f, 30f)));
FlightLiftoffSpeed = config.Bind(flight, "Liftoff Speed", 9f,
new ConfigDescription("Climb speed while clawing out of water.", new AcceptableValueRange<float>(0f, 30f)));
FlightHoverSeconds = config.Bind(flight, "Hover Seconds", 5f,
new ConfigDescription("How long level flight holds altitude after the last powered input before it starts to sink.", new AcceptableValueRange<float>(0f, 30f)));
FlightSprintStaminaPerSecond = config.Bind(flight, "Sprint Stamina Per Second", 15f,
new ConfigDescription("Stamina drained per second while the sprint speed is actually granted.", new AcceptableValueRange<float>(0f, 60f)));
// Was "Skadi - Directed Flight", one set of numbers for both flying forms. The Drake is
// the scout: quick, nimble, free to fly, grounded by a heavy pack. The Moder is the
// freighter: slow to turn and paying for every beat, but it lifts what the Drake cannot.
const string forms = "Skadi - Dragon Forms";
int order = 1000;
DrakeFlight = BindFlight(config, forms, "Drake", ref order,
turn: 180f, glide: 6f, boost: 14f, sprint: 26f, reverse: 8f, liftoff: 9f, hover: 3f,
powered: 0f, sprintCost: 10f, encumbered: AswidConfig.EncumberedMode.Blocked, extraCost: 0.25f);
DrakeTiming = BindTiming(config, forms, "Drake", ref order);
ModerFlight = BindFlight(config, forms, "Moder", ref order,
turn: 80f, glide: 5f, boost: 10f, sprint: 18f, reverse: 6f, liftoff: 9f, hover: 8f,
powered: 3f, sprintCost: 15f, encumbered: AswidConfig.EncumberedMode.Allowed, extraCost: 0.25f);
ModerTiming = BindTiming(config, forms, "Moder", ref order);
FaderTiming = BindTiming(config, forms, "Fader", ref order);
}
private static FormFlight BindFlight(ConfigFile config, string section, string form, ref int order,
float turn, float glide, float boost, float sprint, float reverse, float liftoff, float hover,
float powered, float sprintCost, AswidConfig.EncumberedMode encumbered, float extraCost)
{
return new FormFlight
{
TurnSpeed = config.Bind(section, $"{form} Turn Speed", turn,
OrderedDesc($"Degrees per second the {form} turns towards where you aim.", new AcceptableValueRange<float>(10f, 360f), order--)),
GlideSpeed = config.Bind(section, $"{form} Glide Speed", glide,
OrderedDesc($"{form} speed while gliding with no key held, in m/s.", new AcceptableValueRange<float>(0f, 30f), order--)),
BoostSpeed = config.Bind(section, $"{form} Boost Speed", boost,
OrderedDesc($"{form} speed while holding W, in m/s. Costs the flight stamina below.", new AcceptableValueRange<float>(0f, 50f), order--)),
SprintSpeed = config.Bind(section, $"{form} Sprint Speed", sprint,
OrderedDesc($"{form} speed while holding W and Shift, in m/s. Costs the sprint stamina on top.", new AcceptableValueRange<float>(0f, 60f), order--)),
ReverseSpeed = config.Bind(section, $"{form} Reverse Speed", reverse,
OrderedDesc($"{form} speed while holding S, in m/s. Costs the flight stamina.", new AcceptableValueRange<float>(0f, 30f), order--)),
LiftoffSpeed = config.Bind(section, $"{form} Liftoff Speed", liftoff,
OrderedDesc($"{form} climb speed out of water, in m/s. Always free, so a form that touches the sea can still leave it.", new AcceptableValueRange<float>(0f, 30f), order--)),
HoverSeconds = config.Bind(section, $"{form} Hover Seconds", hover,
OrderedDesc($"How long the {form} holds its height after the last powered beat before it starts to sink.", new AcceptableValueRange<float>(0f, 30f), order--)),
PoweredStaminaPerSecond = config.Bind(section, $"{form} Flight Stamina Per Second", powered,
OrderedDesc($"Stamina per second while the {form} holds W or S. Out of stamina, it can only glide. 0 makes flight free.", new AcceptableValueRange<float>(0f, 60f), order--)),
SprintStaminaPerSecond = config.Bind(section, $"{form} Sprint Stamina Per Second", sprintCost,
OrderedDesc($"Extra stamina per second while the {form} sprints, on top of the flight cost.", new AcceptableValueRange<float>(0f, 60f), order--)),
Encumbered = config.Bind(section, $"{form} While Encumbered", encumbered,
OrderedDesc($"Allowed: the {form} flies while you carry too much, at the extra stamina cost below. Blocked: it cannot take off while you are encumbered, and one that becomes encumbered in the air can only glide down. It still walks.", null, order--)),
EncumberedExtraCost = config.Bind(section, $"{form} Encumbered Extra Stamina Cost", extraCost,
OrderedDesc($"With 'Allowed' above: how much more the {form}'s flight and sprint cost while encumbered. 0.25 = 25% more.", new AcceptableValueRange<float>(0f, 1f), order--)),
};
}
private static FormTiming BindTiming(ConfigFile config, string section, string form, ref int order)
{
return new FormTiming
{
MaxDuration = config.Bind(section, $"{form} Max Duration", -1f,
OrderedDesc($"Seconds the {form} form lasts before you turn back on your own. -1 follows the boss tiers (see the Compendium), 0 means no limit.", new AcceptableValueRange<float>(-1f, 3600f), order--)),
DurationPerState = config.Bind(section, $"{form} Duration Per State", 0f,
OrderedDesc($"Seconds added to the {form}'s max duration per progression state. Only counts when Max Duration is above 0.", new AcceptableValueRange<float>(0f, 600f), order--)),
Cooldown = config.Bind(section, $"{form} Cooldown", -1f,
OrderedDesc($"Seconds after leaving the {form} form before you can take it again. -1 follows the boss tiers, 0 means none.", new AcceptableValueRange<float>(-1f, 3600f), order--)),
};
}
private static ConfigDescription OrderedDesc(string description, AcceptableValueBase range, int order)
{
return new ConfigDescription(description, range, new ConfigurationManagerAttributes { Order = order });
}
private static ConfigDescription KeyDesc(string description, int order)

View file

@ -85,7 +85,9 @@ namespace RacesOfValheim
rules.Form = FormType.Drake;
rules.CanAttackInForm = false;
}
return rules.Form != FormType.None ? rules : null;
if (rules.Form == FormType.None) return null;
ApplyTiming(rules, SkadiConfig.DrakeTiming, state);
return rules;
}
public static FormRules GetHKeyRules(int state)
@ -112,7 +114,9 @@ namespace RacesOfValheim
rules.CooldownMinutes = 10f;
rules.CanAttackInForm = true;
}
return rules.Form != FormType.None ? rules : null;
if (rules.Form == FormType.None) return null;
ApplyTiming(rules, SkadiConfig.ModerTiming, state);
return rules;
}
public static FormRules GetJKeyRules(int state)
@ -125,7 +129,27 @@ namespace RacesOfValheim
rules.CooldownMinutes = 0f;
rules.CanAttackInForm = true;
}
return rules.Form != FormType.None ? rules : null;
if (rules.Form == FormType.None) return null;
ApplyTiming(rules, SkadiConfig.FaderTiming, state);
return rules;
}
/// <summary>
/// The config's timing on top of the tier table above: -1 leaves the table's value, 0 or
/// more replaces it. Per-state seconds only stretch a limit that exists, as on the bat.
/// </summary>
private static void ApplyTiming(FormRules rules, SkadiConfig.FormTiming timing, int state)
{
if (timing == null) return;
float max = timing.MaxDuration.Value;
if (max >= 0f)
rules.DurationMinutes = max > 0f ? (max + timing.DurationPerState.Value * state) / 60f : 0f;
else if (rules.DurationMinutes > 0f)
rules.DurationMinutes += timing.DurationPerState.Value * state / 60f;
float cooldown = timing.Cooldown.Value;
if (cooldown >= 0f) rules.CooldownMinutes = cooldown / 60f;
}
}
}

View file

@ -79,11 +79,11 @@ namespace RacesOfValheim
// drake one used for the passive blessing.
Sprite dragonIcon = GetItemIcon("TrophyDragonQueen") ?? GetItemIcon("TrophyHatchling");
skadiCdSE = ScriptableObject.CreateInstance<SE_FormCooldown>();
skadiCdSE.name = "SE_SkadiCooldown";
skadiCdSE.m_name = "$rov_se_skadi_formcd_name";
skadiCdSE.m_icon = dragonIcon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(skadiCdSE, fixReference: false));
// One cooldown per form, so a Drake cooldown set in the config never holds the Moder
// back, nor the other way round. The Moder keeps the original name.
skadiCdSE = RegisterFormCooldown(SkadiProgression.FormType.Moder, "$rov_se_skadi_formcd_name", dragonIcon);
RegisterFormCooldown(SkadiProgression.FormType.Drake, "$rov_se_skadi_drakecd_name", GetItemIcon("TrophyHatchling") ?? dragonIcon);
RegisterFormCooldown(SkadiProgression.FormType.SkeletonDragon, "$rov_se_skadi_fadercd_name", GetItemIcon("TrophyFader") ?? dragonIcon);
skadiFormSE = ScriptableObject.CreateInstance<SE_SkadiForm>();
skadiFormSE.name = "SE_SkadiForm";
@ -124,6 +124,26 @@ namespace RacesOfValheim
if (se != null) se.m_ttl = seconds;
}
private static SE_FormCooldown RegisterFormCooldown(SkadiProgression.FormType form, string displayName, Sprite icon)
{
SE_FormCooldown cd = ScriptableObject.CreateInstance<SE_FormCooldown>();
cd.name = CooldownSEName(form);
cd.m_name = displayName;
cd.m_icon = icon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(cd, fixReference: false));
return cd;
}
private static string CooldownSEName(SkadiProgression.FormType form)
{
switch (form)
{
case SkadiProgression.FormType.Drake: return "SE_SkadiCooldown_Drake";
case SkadiProgression.FormType.SkeletonDragon: return "SE_SkadiCooldown_Fader";
default: return "SE_SkadiCooldown";
}
}
private static Sprite GetItemIcon(string prefabName)
{
GameObject trophy = PrefabManager.Cache.GetPrefab<ItemDrop>(prefabName)?.gameObject;
@ -687,7 +707,7 @@ namespace RacesOfValheim
if (rules.CooldownMinutes > 0)
{
var cdSE = Player.m_localPlayer.GetSEMan().GetStatusEffect("SE_SkadiCooldown".GetStableHashCode());
var cdSE = Player.m_localPlayer.GetSEMan().GetStatusEffect(CooldownSEName(rules.Form).GetStableHashCode());
if (cdSE != null)
{
float m_time = HarmonyLib.Traverse.Create(cdSE).Field<float>("m_time").Value;
@ -983,8 +1003,9 @@ namespace RacesOfValheim
if (activeRules != null && activeRules.CooldownMinutes > 0)
{
Player.m_localPlayer.GetSEMan().AddStatusEffect("SE_SkadiCooldown".GetStableHashCode(), true);
var cdSE = Player.m_localPlayer.GetSEMan().GetStatusEffect("SE_SkadiCooldown".GetStableHashCode());
int cdHash = CooldownSEName(activeRules.Form).GetStableHashCode();
Player.m_localPlayer.GetSEMan().AddStatusEffect(cdHash, true);
var cdSE = Player.m_localPlayer.GetSEMan().GetStatusEffect(cdHash);
if (cdSE != null) cdSE.m_ttl = activeRules.CooldownMinutes * 60f;
}
activeRules = null;

View file

@ -86,14 +86,14 @@
"rov_compendium_dvergar_weapon_crossbow": "Crossbow",
"rov_compendium_dvergar_weapon_hammer": "Hammer",
"rov_compendium_fenrir_beast_within_physical_stats_scale": "[Base Passive] The Beast Within: Your physical stats scale with every boss you defeat: +$1 Armor, +$2 Damage, +$3% Speed, +$4% Jump, and -$5% Fall Damage.\n",
"rov_compendium_fenrir_cultist_form_j_key_night": "[Yagluth Unlock] Cultist Form ('J' Key, night only): A robed shape that claws and channels fire. Lasts 1 minute, 10-minute cooldown.\n",
"rov_compendium_fenrir_cultist_form_j_key_night": "[Yagluth Unlock] Cultist Form ('J' Key, night only): A robed shape that claws and channels fire, and pays for it: every hit on it lands 25% harder. Lasts 1 minute, 10-minute cooldown.\n",
"rov_compendium_fenrir_cultist_form_now_answers_by": "[Fader Unlock] Cultist Form now answers by day as well as night, and may be held as long as you wish.\n",
"rov_compendium_fenrir_cultist_form_s_cooldown_falls": "[The Queen Unlock] Cultist Form's cooldown falls to 5 minutes (still night only, still 1 minute).\n",
"rov_compendium_fenrir_curse_pack": "The Curse of the Pack\n",
"rov_compendium_fenrir_cursed_claws_s_wolf_s": "[Base Passive] Cursed Claws ([K], $1s): The wolf's hands, kept on in the man's shape for a limited time instead of a weapon. Bare-handed blows land at $2% of a full-grown pair's weight, all of it as slash, and they grow with every boss that falls. Draw a sword and they wait, sheathe it and they are back, until the timer runs out and they retract on their own - no slot wasted between casts. They cannot be dropped, traded or stolen while grown - and in beast form the jaws do the work instead.\n",
"rov_compendium_fenrir_fenring_form_h_key_night": "[Moder Unlock] Fenring Form ('H' Key, night only): Stand as a true Fenring - heavy claws and a leaping strike, and the strongest of the four shapes so far.\n",
"rov_compendium_fenrir_fenring_form_h_key_night": "[Moder Unlock] Fenring Form ('H' Key, night only): Stand as a true Fenring - heavy claws and a leaping strike, and the strongest of the four shapes so far. It is the one that holds the line: every hit on it lands 30% lighter.\n",
"rov_compendium_fenrir_fenring_form_now_answers_by": "[The Queen Unlock] Fenring Form now answers by day as well as night.\n",
"rov_compendium_fenrir_g_now_calls_ulv_form": "[Moder Unlock] 'G' now calls Ulv Form instead of Wolf, and answers by day as well as night.\n",
"rov_compendium_fenrir_g_now_calls_ulv_form": "[Moder Unlock] 'G' now calls Ulv Form instead of Wolf, and answers by day as well as night. The Ulv is the fastest of your shapes, the one to travel in.\n",
"rov_compendium_fenrir_senses_in_form": "In any form you sense every untamed creature within $1m, marking it with a telltale glow, as the Aswid do.\n",
"rov_compendium_fenrir_sunrise_breaks_any_night_bound": "Sunrise breaks any night-bound form early and leaves the beast too tired to change shape again for a short while after.\n",
"rov_compendium_fenrir_title": "Fenrir Secrets",
@ -142,7 +142,7 @@
"rov_compendium_skadi_one_stonecutter_holds_them_no": "One stonecutter holds $1 of them, and no more than $2 may stand within a day's walk of each other. Break the stonecutter and what it cut goes still $3 seconds later.\n",
"rov_compendium_skadi_secrets_winter": "The Secrets of Winter\n",
"rov_compendium_skadi_skeleton_dragon_form_j_key": "[Fader Unlock] Skeleton Dragon Form ('J' Key):",
"rov_compendium_skadi_take_shape_frost_drake_right": "Take the shape of a frost drake. Right Mouse lifts you into flight: you glide wherever you aim, hold W to climb and gather speed, hold Shift with it to spend stamina on a burst of speed, and press S to beat backwards along your aim while your gaze stays where it was. Release everything and you hold level for five seconds before settling into a slow descent. Water cannot hold you - your wings drag you free of the sea as readily as they lift you from the shore. In this shape you cannot yet strike.\n",
"rov_compendium_skadi_take_shape_frost_drake_right": "Take the shape of a frost drake. Right Mouse lifts you into flight: you glide wherever you aim, hold W to climb and gather speed, hold Shift with it to spend stamina on a burst of speed, and press S to beat backwards along your aim while your gaze stays where it was. Release everything and you hold level for a few seconds before settling into a slow descent. Water cannot hold you - your wings drag you free of the sea as readily as they lift you from the shore. Carry too much and they will not lift you at all. In this shape you cannot yet strike.\n",
"rov_compendium_skadi_tear_cold_nothing_wakes_stone": "The tear is cold. Nothing wakes in the stone until the mountain's queen has fallen.\n",
"rov_compendium_skadi_title": "Skadi Secrets",
"rov_compendium_skadi_winter_incarnate_passive": "[The Queen Unlock] Winter Incarnate (Passive):",

View file

@ -117,6 +117,7 @@
"rov_msg_skadi_are_moder": "You are Moder!",
"rov_msg_skadi_dragon_form_cooldown": "Dragon Form is on cooldown ($1:$2).",
"rov_msg_skadi_dragon_form_fades": "Your dragon form fades.",
"rov_msg_skadi_too_heavy_to_fly": "You carry too much for the Drake to take off",
"rov_msg_skadi_dumped_dragon_drake_fader_debug": "Dumped Dragon/Drake/Fader debug info to console!",
"rov_msg_skadi_needs_stonecutter_cut_at": "It needs a stonecutter to be cut at.",
"rov_msg_skadi_not_enough_stamina": "Not enough stamina",

View file

@ -40,7 +40,9 @@
"rov_se_skadi_dragonattackcd_tooltip": "Your dragon shape must ready itself to strike again.",
"rov_se_skadi_form_name": "Dragon Form",
"rov_se_skadi_form_tooltip": "Your dragon shape holds for a while longer.",
"rov_se_skadi_formcd_name": "Dragon Form Cooldown",
"rov_se_skadi_drakecd_name": "Drake Form Cooldown",
"rov_se_skadi_fadercd_name": "Fader Form Cooldown",
"rov_se_skadi_formcd_name": "Moder Form Cooldown",
"rov_se_skadi_stats_name": "Skadi's Blessing",
"rov_se_skeleton_resurrectcd_name": "Resurrection Cooldown",
"rov_se_skeleton_resurrectcd_tooltip": "Your skeletal body is too weak to resurrect again right now.",

View file

@ -86,14 +86,14 @@
"rov_compendium_dvergar_weapon_crossbow": "Balestra",
"rov_compendium_dvergar_weapon_hammer": "Martello",
"rov_compendium_fenrir_beast_within_physical_stats_scale": "[Passiva base] La bestia dentro: le tue statistiche fisiche crescono con ogni boss sconfitto: +$1 armatura, +$2 danni, +$3% velocità, +$4% salto e -$5% danni da caduta.\n",
"rov_compendium_fenrir_cultist_form_j_key_night": "[Sblocco Yagluth] Forma di Cultista (tasto 'J', solo di notte): una figura incappucciata che artiglia e incanala il fuoco. Dura 1 minuto, ricarica di 10 minuti.\n",
"rov_compendium_fenrir_cultist_form_j_key_night": "[Sblocco Yagluth] Forma di Cultista (tasto 'J', solo di notte): una figura incappucciata che artiglia e incanala il fuoco, e lo paga: ogni colpo che subisce arriva più forte del 25%. Dura 1 minuto, ricarica di 10 minuti.\n",
"rov_compendium_fenrir_cultist_form_now_answers_by": "[Sblocco Fader] La forma di Cultista ora risponde di giorno come di notte, e puoi tenerla quanto vuoi.\n",
"rov_compendium_fenrir_cultist_form_s_cooldown_falls": "[Sblocco Regina] La ricarica della forma di Cultista scende a 5 minuti (sempre solo di notte, sempre 1 minuto).\n",
"rov_compendium_fenrir_curse_pack": "La maledizione del branco\n",
"rov_compendium_fenrir_cursed_claws_s_wolf_s": "[Passiva base] Artigli maledetti ([K], $1s): le mani del lupo, tenute nella forma dell'uomo per un tempo limitato al posto di un'arma. I colpi a mani nude valgono il $2% del peso di un paio adulto, tutto come danno da taglio, e crescono con ogni boss che cade. Sfodera una spada e aspettano, rinfoderala e tornano, finché il tempo non scade e si ritraggono da soli, senza sprecare uno slot tra un uso e l'altro. Mentre sono fuori non possono essere lasciati cadere, scambiati o rubati, e in forma di bestia sono le fauci a fare il lavoro.\n",
"rov_compendium_fenrir_fenring_form_h_key_night": "[Sblocco Moder] Forma di Fenring (tasto 'H', solo di notte): ergiti come un vero Fenring, con artigli pesanti e un attacco in salto, la più forte delle quattro forme finora.\n",
"rov_compendium_fenrir_fenring_form_h_key_night": "[Sblocco Moder] Forma di Fenring (tasto 'H', solo di notte): ergiti come un vero Fenring, con artigli pesanti e un attacco in salto, la più forte delle quattro forme finora. È la forma che tiene la linea: ogni colpo che subisce arriva più leggero del 30%.\n",
"rov_compendium_fenrir_fenring_form_now_answers_by": "[Sblocco Regina] La forma di Fenring ora risponde di giorno come di notte.\n",
"rov_compendium_fenrir_g_now_calls_ulv_form": "[Sblocco Moder] 'G' ora richiama la forma di Ulv invece del Lupo, e risponde di giorno come di notte.\n",
"rov_compendium_fenrir_g_now_calls_ulv_form": "[Sblocco Moder] 'G' ora richiama la forma di Ulv invece del Lupo, e risponde di giorno come di notte. L'Ulv è la più veloce delle tue forme, quella per viaggiare.\n",
"rov_compendium_fenrir_senses_in_form": "In qualsiasi forma percepisci ogni creatura non addomesticata entro $1m, e la segni con un bagliore rivelatore, come fanno gli Aswid.\n",
"rov_compendium_fenrir_sunrise_breaks_any_night_bound": "L'alba spezza in anticipo ogni forma legata alla notte, e lascia la bestia troppo stanca per cambiare di nuovo forma per un po'.\n",
"rov_compendium_fenrir_title": "Segreti dei Fenrir",
@ -142,7 +142,7 @@
"rov_compendium_skadi_one_stonecutter_holds_them_no": "Uno scalpellino ne tiene $1, e non più di $2 possono stare entro una giornata di cammino l'uno dall'altro. Distruggi lo scalpellino e ciò che ha tagliato si ferma $3 secondi dopo.\n",
"rov_compendium_skadi_secrets_winter": "I segreti dell'inverno\n",
"rov_compendium_skadi_skeleton_dragon_form_j_key": "[Sblocco Fader] Forma di drago scheletrico (tasto 'J'):",
"rov_compendium_skadi_take_shape_frost_drake_right": "Prendi la forma di un drake del gelo. Il tasto destro ti solleva in volo: plani dove miri, tieni premuto W per salire e prendere velocità, aggiungi Shift per spendere stamina in uno scatto, e premi S per battere le ali all'indietro lungo la mira mentre lo sguardo resta dov'era. Lascia tutto e resti in quota per cinque secondi prima di scendere piano. L'acqua non può trattenerti: le tue ali ti tirano fuori dal mare con la stessa facilità con cui ti sollevano dalla riva. In questa forma non puoi ancora colpire.\n",
"rov_compendium_skadi_take_shape_frost_drake_right": "Prendi la forma di un drake del gelo. Il tasto destro ti solleva in volo: plani dove miri, tieni premuto W per salire e prendere velocità, aggiungi Shift per spendere stamina in uno scatto, e premi S per battere le ali all'indietro lungo la mira mentre lo sguardo resta dov'era. Lascia tutto e resti in quota per qualche secondo prima di scendere piano. L'acqua non può trattenerti: le tue ali ti tirano fuori dal mare con la stessa facilità con cui ti sollevano dalla riva. Se porti troppo peso, però, non ti sollevano affatto. In questa forma non puoi ancora colpire.\n",
"rov_compendium_skadi_tear_cold_nothing_wakes_stone": "La lacrima è fredda. Niente si sveglia nella pietra finché la regina della montagna non è caduta.\n",
"rov_compendium_skadi_title": "Segreti di Skadi",
"rov_compendium_skadi_winter_incarnate_passive": "[Sblocco Regina] Inverno incarnato (passiva):",

View file

@ -117,6 +117,7 @@
"rov_msg_skadi_are_moder": "Sei Moder!",
"rov_msg_skadi_dragon_form_cooldown": "La forma di drago è in ricarica ($1:$2).",
"rov_msg_skadi_dragon_form_fades": "La tua forma di drago svanisce.",
"rov_msg_skadi_too_heavy_to_fly": "Porti troppo peso perché il Drake possa alzarsi in volo",
"rov_msg_skadi_dumped_dragon_drake_fader_debug": "Info di debug Dragon/Drake/Fader scritte nella console!",
"rov_msg_skadi_needs_stonecutter_cut_at": "Ha bisogno di uno scalpellino per essere tagliato.",
"rov_msg_skadi_not_enough_stamina": "Stamina insufficiente",

View file

@ -40,7 +40,9 @@
"rov_se_skadi_dragonattackcd_tooltip": "La tua forma di drago deve prepararsi prima di colpire ancora.",
"rov_se_skadi_form_name": "Forma di drago",
"rov_se_skadi_form_tooltip": "La tua forma di drago resiste ancora per un po'.",
"rov_se_skadi_formcd_name": "Ricarica forma di drago",
"rov_se_skadi_drakecd_name": "Ricarica forma di Drake",
"rov_se_skadi_fadercd_name": "Ricarica forma di Fader",
"rov_se_skadi_formcd_name": "Ricarica forma di Moder",
"rov_se_skadi_stats_name": "Benedizione di Skadi",
"rov_se_skeleton_resurrectcd_name": "Ricarica resurrezione",
"rov_se_skeleton_resurrectcd_tooltip": "Il tuo corpo scheletrico è troppo debole per risorgere di nuovo adesso.",

View file

@ -86,14 +86,14 @@
"rov_compendium_dvergar_weapon_crossbow": "Арбалет",
"rov_compendium_dvergar_weapon_hammer": "Молот",
"rov_compendium_fenrir_beast_within_physical_stats_scale": "[Базовое пассивное] Зверь внутри: Ваши физические характеристики растут с каждым убитым боссом: +$1 к броне, +$2 к урону, +$3% к скорости, +$4% к прыжку и -$5% к урону от падения.\n",
"rov_compendium_fenrir_cultist_form_j_key_night": "[Награда: Яглут] Облик культиста (клавиша «J», только ночью): Облик в балахоне, раздирающий врагов когтями и направляющий потоки пламени. Длится 1 минуту, перезарядка: 10 минут.\n",
"rov_compendium_fenrir_cultist_form_j_key_night": "[Награда: Яглут] Облик культиста (клавиша «J», только ночью): Облик в балахоне, раздирающий врагов когтями и направляющий потоки пламени. За это приходится платить: каждый удар по нему наносит на 25% больше урона. Длится 1 минуту, перезарядка: 10 минут.\n",
"rov_compendium_fenrir_cultist_form_now_answers_by": "[Награда: Прародитель] Облик культиста теперь подчиняется как днем, так и ночью, и его можно удерживать сколько угодно.\n",
"rov_compendium_fenrir_cultist_form_s_cooldown_falls": "[Награда: Королева] Перезарядка облика культиста снижена до 5 минут (все еще только ночью, длительность 1 минута).\n",
"rov_compendium_fenrir_curse_pack": "Проклятие Стаи\n",
"rov_compendium_fenrir_cursed_claws_s_wolf_s": "[Базовое пассивное] Проклятые когти ([K], $1 с): Волчьи лапы, сохраняющиеся в человеческом теле на ограниченное время вместо оружия. Удары голыми руками наносят $2% от урона зрелых когтей (полностью рубящий урон), и их сила растет с каждым павшим боссом. Достаньте меч — они исчезнут, вложите в ножны — вернутся, пока не истечет время. Не тратят место в инвентаре. Их нельзя выбросить, передать или украсть, пока они активны — а в зверином облике вместо них работают челюсти.\n",
"rov_compendium_fenrir_fenring_form_h_key_night": "[Награда: Матерь] Облик фенринга (клавиша «H», только ночью): Станьте истинным Фенрингом — тяжелые когти, сокрушительный удар в прыжке и мощнейшая из четырех форм на данный момент.\n",
"rov_compendium_fenrir_fenring_form_h_key_night": "[Награда: Матерь] Облик фенринга (клавиша «H», только ночью): Станьте истинным Фенрингом — тяжелые когти, сокрушительный удар в прыжке и мощнейшая из четырех форм на данный момент. Этот облик держит строй: каждый удар по нему наносит на 30% меньше урона.\n",
"rov_compendium_fenrir_fenring_form_now_answers_by": "[Награда: Королева] Облик фенринга теперь доступен как днем, так и ночью.\n",
"rov_compendium_fenrir_g_now_calls_ulv_form": "[Награда: Матерь] Клавиша «G» теперь призывает облик Ульва вместо Волка и доступна и днем, и ночью.\n",
"rov_compendium_fenrir_g_now_calls_ulv_form": "[Награда: Матерь] Клавиша «G» теперь призывает облик Ульва вместо Волка и доступна и днем, и ночью. Ульв — самый быстрый из ваших обликов, в нем удобно путешествовать.\n",
"rov_compendium_fenrir_senses_in_form": "В любой форме вы чувствуете любое неприрученное существо в радиусе $1 м, подсвечивая его характерным свечением, как Асвиды.\n",
"rov_compendium_fenrir_sunrise_breaks_any_night_bound": "Восход солнца прерывает любую ночную форму раньше срока и оставляет зверя истощенным, не позволяя перевоплощаться еще некоторое время.\n",
"rov_compendium_fenrir_title": "Тайны Фенрира",
@ -142,7 +142,7 @@
"rov_compendium_skadi_one_stonecutter_holds_them_no": "Один камнерез поддерживает $1 таких стражей, и не более $2 могут находиться на расстоянии дневного перехода друг от друга. Сломайте камнерез — и сотворенный голем замрет навеки спустя $3 с.\n",
"rov_compendium_skadi_secrets_winter": "Тайны Зимы\n",
"rov_compendium_skadi_skeleton_dragon_form_j_key": "[Награда: Прародитель] Облик дракона-скелета (клавиша «J»):",
"rov_compendium_skadi_take_shape_frost_drake_right": "Примите облик ледяного дрейка. ПКМ поднимает вас в воздух: вы парите туда, куда смотрите; зажмите W, чтобы набирать высоту и скорость; зажмите с ней Shift, чтобы ускориться за счет выносливости; нажмите S, чтобы пятиться спиной назад, удерживая прицел. Отпустите клавиши управления — и вы замрете в воздухе на 5 секунд перед медленным снижением. Вода не удержит вас: крылья выдернут вас из морской пучины так же легко, как и с берега. В этой форме вы пока не можете атаковать.\n",
"rov_compendium_skadi_take_shape_frost_drake_right": "Примите облик ледяного дрейка. ПКМ поднимает вас в воздух: вы парите туда, куда смотрите; зажмите W, чтобы набирать высоту и скорость; зажмите с ней Shift, чтобы ускориться за счет выносливости; нажмите S, чтобы пятиться спиной назад, удерживая прицел. Отпустите клавиши управления — и вы замрете в воздухе на несколько секунд перед медленным снижением. Вода не удержит вас: крылья выдернут вас из морской пучины так же легко, как и с берега. Но с перегрузом они вас не поднимут. В этой форме вы пока не можете атаковать.\n",
"rov_compendium_skadi_tear_cold_nothing_wakes_stone": "Слеза холодна. Ничто в камне не пробудится, пока владычица гор не падет.\n",
"rov_compendium_skadi_title": "Тайны Скади",
"rov_compendium_skadi_winter_incarnate_passive": "[Награда: Королева] Воплощение зимы (Пассивное):",

View file

@ -117,6 +117,7 @@
"rov_msg_skadi_are_moder": "Вы — Матерь!",
"rov_msg_skadi_dragon_form_cooldown": "Облик дракона перезаряжается ($1:$2).",
"rov_msg_skadi_dragon_form_fades": "Ваш облик дракона рассеивается.",
"rov_msg_skadi_too_heavy_to_fly": "Вы несете слишком много, чтобы Дрейк мог взлететь",
"rov_msg_skadi_dumped_dragon_drake_fader_debug": "Отладочная информация Dragon/Drake/Fader сброшена в консоль!",
"rov_msg_skadi_needs_stonecutter_cut_at": "Для обработки требуется камнерез.",
"rov_msg_skadi_not_enough_stamina": "Недостаточно выносливости",

View file

@ -40,7 +40,9 @@
"rov_se_skadi_dragonattackcd_tooltip": "Облик дракона восстанавливает силы для следующего удара.",
"rov_se_skadi_form_name": "Облик дракона",
"rov_se_skadi_form_tooltip": "Вы сохраняете драконий облик еще некоторое время.",
"rov_se_skadi_formcd_name": "Перезарядка облика дракона",
"rov_se_skadi_drakecd_name": "Перезарядка облика Дрейка",
"rov_se_skadi_fadercd_name": "Перезарядка облика Фейдер",
"rov_se_skadi_formcd_name": "Перезарядка облика Модер",
"rov_se_skadi_stats_name": "Благословение Скади",
"rov_se_skeleton_resurrectcd_name": "Перезарядка воскрешения",
"rov_se_skeleton_resurrectcd_tooltip": "Ваш костяк слишком слаб, чтобы воскреснуть вновь прямо сейчас.",

View file

@ -15,9 +15,11 @@ Support the mod: [Patreon — NandorTheModder](https://www.patreon.com/c/NandorT
---
## New in v1.6.6
## New in v1.6.7
**Build small, build big, and the Alfar base gets a new look.** The new Shrink Hammer builds any piece down to a quarter of its size, for every race, and both sizing hammers now change size with Alt + scroll. The Alfar's two chests and the Ljoskjarne have bodies of their own, and the drones go back to work after a fight and tell you what they skip. Full details in the [changelog](#v166).
**Heads-up: a few settings reset.** Some Skadi and Fenrir config keys have new names, so any value you changed in them is back to its default; the [changelog](#v167) lists which.
**Every dragon and every wolf has a job.** The Skadi's Drake is the quick scout and the Moder the slow freighter, and each form has its own duration and cooldown settings. The Fenrir's Ulv is the travel form, the Fenring holds the line, the Cultist burns and breaks easily. Alfar drones carry wood to the kiln again. Full details in the [changelog](#v167).
---
@ -38,15 +40,15 @@ Support the mod: [Patreon — NandorTheModder](https://www.patreon.com/c/NandorT
![Skadi2](https://wiki.aledanidev.ovh/assets/images/skadi2.gif)
![Skadi3](https://wiki.aledanidev.ovh/assets/images/skadi3.gif)
- **Ice Affinity:** Resistant to cold, with unique frost mechanics.
- **Drake Form:** Can transform into a frost Drake, letting you fly.
- **Dragon Form:** Evolve into Moder and later even the Skeleton Dragon.
- **Drake Form:** Can transform into a frost Drake, letting you fly. The Drake is the scout: quick, nimble, free to fly, but it will not take off while you carry too much.
- **Dragon Form:** Evolve into Moder and later even the Skeleton Dragon. The Moder is the freighter: slow to turn, 3 stamina a second to fly, but it lifts a heavy pack. Flight numbers, duration and cooldown for each form are under `Skadi - Dragon Forms`.
- **Elemental Magic:** The Cold Spell and all three dragon breaths raise the Elemental Magic skill when they connect — one cast is worth one cast, however many shards it throws. The Frost Aura earns a fraction of that per tick that actually burns something. Both amounts are configurable, and the dragon forms' melee stays on Unarmed, where it always was.
### 3. Fenrir
![Fenrir1](https://wiki.aledanidev.ovh/assets/images/fenrir1.gif)
![Fenrir3](https://wiki.aledanidev.ovh/assets/images/fenrir3.gif)
- **Beast Form:** Transform into a wolf-like beast.
- **Cultist Form:** Transform into a Cultist. Its claws cost nothing, but the **fire breath (hold Right Mouse) runs on eitr** — 12.5 per second — and eitr comes from the Mistlands, so the form unlocks at Yagluth with its flames still out of reach. Holding the button with an empty pool now says so.
- **Beast Form:** Transform into a wolf-like beast. Each form has a job: the Ulv is the fastest, the one to travel in; the Fenring takes 30% less damage and holds the line.
- **Cultist Form:** Transform into a Cultist. Its claws cost nothing, but the **fire breath (hold Right Mouse) runs on eitr** — 12.5 per second — and eitr comes from the Mistlands, so the form unlocks at Yagluth with its flames still out of reach. Holding the button with an empty pool now says so. The Cultist hits hardest and pays for it: it takes 25% more damage.
- **Cursed Claws:** The wolf's hands, kept on in the man's shape — see [Claws](#claws).
- **Night Eyes:** At night your eyes glow in the Fenring's orange: faintly while no form is ready, brightly when one is, and yellow when the Cultist is back from its cooldown. Other players see it too. Turn it off, or the "Ready!" message, under `Fenrir - Appearance`.
- **Hunter's Senses:** In any form, every untamed creature within 100 m glows green, the same senses as the Aswid's. Radius under `Fenrir - Superhuman Senses`.
@ -490,6 +492,12 @@ Both halves have an off switch under `Factions` in Configuration Manager: **Fact
## Changelog
### v1.6.7
- **Heads-up - config reset:** some settings were renamed, so any value you changed in them is back to its default. Skadi: everything in `Skadi - Directed Flight` now lives in `Skadi - Dragon Forms`, split into Drake and Moder keys. Fenrir: `Full Form Speed Bonus` is now `Fenring And Cultist Speed Bonus`, and `Wolf Form Speed Bonus` is split into `Wolf Speed Bonus` and `Ulv Speed Bonus`. If you had tuned any of these, set them again in Configuration Manager. The old entries stay in your .cfg but do nothing. Delete them by hand, or, if you never changed any setting, delete the whole .cfg and the game writes a fresh one on the next start. Don't delete the whole file if you customised anything else: everything goes back to default, keybinds included.
- **Change - Skadi's Drake and Moder fly differently:** the Drake is the scout: it turns faster, sprints at 26 m/s and flies for free, but it will not take off while you are encumbered. The Moder is the freighter: it turns slowly and pays 3 stamina a second to beat its wings, but it carries a heavy pack at 25% extra cost and glides for 8 seconds. `Skadi - Dragon Forms` holds every flight number per form plus, as on the Aswid's bat, Flight Stamina, While Encumbered, Encumbered Extra Stamina Cost, Max Duration, Duration Per State and Cooldown for the Drake, the Moder and the Fader. Duration and cooldown default to -1, which keeps the boss-tier timings. Each form also has its own cooldown now, with its own icon, so a cooldown on one form never blocks another. Thanks to Dissolution for the suggestion. Not tested in game yet.
- **Change - each Fenrir form has a job:** the Ulv is the travel form: it runs 100% faster, where the Fenring and the Cultist drop from 100% to 50%. The Fenring holds the line and takes 30% less damage from every hit. The Cultist keeps its damage and pays for it, taking 25% more. All four numbers are under `Fenrir - Form Buffs`. The Cultist's 25% is a first guess: tell us if it feels too harsh or too soft. Thanks to Lexsonn for the suggestion. Not tested in game yet.
- **Fix - Alfar drones froze with a load:** a delivery started with the clock of the trip before it, so a slow flight or a fight on the way left the drone frozen in place with its load, and only a respawn freed it. Kiln wood was the usual victim. The same fix reaches the Skeleton's, Sverm's and Skadi's servants. A station a drone cannot reach is now set aside for a few minutes, and the load goes back to the chest it came from. Drones also fly up beside a station instead of into it, so they reach a big one like the kiln. Thanks to the players who tested the fix.
### v1.6.6
- **New - Shrink Hammer:** a fine hammer for small work, a little drakkar on a shelf for instance. It builds everything the ordinary hammer builds, from the same menu and at the same cost, from a quarter of the size up to vanilla size. Craft it at a Workbench with 2 Fine Wood and 2 Resin; any race can. Thanks to MrBiffty for the idea.
- **New - Alt + scroll sizes your pieces:** with Trol's Hammer (1 to 3) or the Shrink Hammer (0.25 to 1), hold Alt and scroll in build mode to change the size in steps of 0.05. The bottom bar shows the hint, and the size floats over the preview whenever it is not the hammer's usual one. Select the repair tool and aim at a piece to read the size it was built at. The sliders in Configuration Manager follow the wheel. Both hammers have icons of their own now, so neither passes for the vanilla hammer.

View file

@ -1,7 +1,7 @@
{
"name": "RacesOfValheim",
"description": "A Valheim mod that adds eleven custom playable races (Alfar, Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton, Sverm, Trenta, Trol) each with unique abilities, traits, race stations and a deep boss-driven progression system.",
"version_number": "1.6.6",
"version_number": "1.6.7",
"website_url": "",
"dependencies": [
"denikson-BepInExPack_Valheim-5.4.2333",