Fill in the Skadi compendium entry

It was a placeholder reading "The secrets of winter will be revealed
soon...". It now unfolds tier by tier like the Aswid and Furling ones,
covering the passives, the form keybinds, the flight controls and which
attacks are free. The frost bonus and spell damage figures are computed
from the same formulas the code uses, so the text cannot drift when
those constants are tuned.
This commit is contained in:
kanym 2026-08-01 18:02:24 +02:00
commit 5d5a6eab42

View file

@ -153,7 +153,66 @@ namespace RacesOfValheim
private static void GenerateSkadiText(Dictionary<string, string> knownTexts, int state)
{
knownTexts["Skadi Secrets"] = "The secrets of winter will be revealed soon...";
// Mirrors the live values so the entry cannot drift from the code: the frost bonus is
// SkadiDamagePatch's 2 per state, the spell figure SkadiRace's 15 + 8 per state.
int frostBonus = state * 2;
int spellDamage = 15 + 8 * state;
StringBuilder sb = new StringBuilder();
sb.AppendLine("The Secrets of Winter\n");
sb.AppendLine("[Base Passive] Ice Affinity:");
sb.AppendLine($"The cold cannot touch you, and frost answers to your hand. You are immune to the Cold status, take only half damage from frost, and every blow you land carries +{frostBonus} Frost damage - a bonus that grows as each boss falls.\n");
if (state >= 2)
{
sb.AppendLine("[Eikthyr Unlock] Cold Spell (Middle Mouse):");
sb.AppendLine($"Hurl a shard of ice at whatever you look upon, for {spellDamage} Frost damage. It draws on 20 stamina rather than eitr, so it serves you from your very first winter.\n");
}
if (state >= 3)
{
sb.AppendLine("[The Elder Unlock] Drake Form ('G' Key):");
sb.AppendLine("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, and release to hold level a moment before settling into a slow descent. In this shape you cannot yet strike.\n");
}
if (state >= 4)
{
sb.AppendLine("[Bonemass Unlock] Winter's Welcome (Passive):");
sb.AppendLine("The killing gales of the mountains soften to a mere chill - you suffer Cold where others would freeze.\n");
sb.AppendLine("[Bonemass Unlock] Drake Breath (Left Mouse):");
sb.AppendLine("Your drake form may now spit ice at your enemies.\n");
}
if (state >= 5)
{
sb.AppendLine("[Moder Unlock] Moder Form ('H' Key):");
sb.AppendLine("Become the great frost dragon herself for 1 minute, then wait 10 before calling her again. Afoot, Left Mouse bites and claws for no cost at all, while Middle Mouse breathes a stream of ice. On the wing, Left Mouse looses a barrage of shards. Only the breath and the barrage draw upon eitr.\n");
}
if (state >= 6)
{
sb.AppendLine("[Yagluth Unlock] Heart of Winter (Passive):");
sb.AppendLine("Freezing can no longer reach you at all, and your eitr returns half again as fast.\n");
sb.AppendLine("[Yagluth Unlock] Improved Cold Spell:");
sb.AppendLine("Your Cold Spell scatters into ten shards, spreading its bite across all before you. The wider cast needs 4 seconds to gather itself.\n");
sb.AppendLine("Moder Form now answers you again after only 5 minutes.\n");
}
if (state >= 7)
{
sb.AppendLine("[The Queen Unlock] Winter Incarnate (Passive):");
sb.AppendLine("Frost cannot wound you at all, and a freezing aura bleeds from your skin, gnawing at every untamed creature within 3 meters.\n");
sb.AppendLine("Moder Form may now be held as long as you wish, with no wait between callings.\n");
}
if (state >= 8)
{
sb.AppendLine("[Fader Unlock] Skeleton Dragon Form ('J' Key):");
sb.AppendLine("The bones of a dragon rise at your call, wreathed in frost. It rends with bite and claw, sweeps all around it with a spinning tail (Right Mouse), and its breath carries thrice the fury of Moder's.\n");
}
knownTexts["Skadi Secrets"] = sb.ToString();
}
private static void GenerateSkeletonText(Dictionary<string, string> knownTexts, int state)