draughfirstdraft

This commit is contained in:
Ferdinando 2026-08-02 08:30:53 +02:00
commit be2f7a73cd
8 changed files with 555 additions and 163 deletions

View file

@ -14,7 +14,8 @@ namespace RacesOfValheim
"Skadi Secrets",
"Skeleton Secrets",
"Furling Secrets",
"Trol Secrets"
"Trol Secrets",
"Draugh Secrets"
};
public static void UpdateCompendiumText(Player player)
@ -62,6 +63,41 @@ namespace RacesOfValheim
{
GenerateTrolText(knownTexts, state, player);
}
else if (currentRace == "Draugh")
{
GenerateDraughText(knownTexts, state, player);
}
}
private static void GenerateDraughText(Dictionary<string, string> knownTexts, int state, Player player)
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("The Draugh's Awakening\n");
sb.AppendLine("[Base Passive] Born Dead, Buried Alive: You are a decaying undead warrior. You have innate resistance to Poison, but are weak to Fire and Spirit damage. Your digestive system adapts to death, allowing you to consume raw and rotten meat (Neck tail, raw meat, entrails, ooze, etc.).\n");
if (state >= 2)
sb.AppendLine("Slowly We Rot (Passive): You are no longer hindered by water. You gain immunity to the Wet effect, your movement speed in water is greatly increased, and you passively regenerate health while wet or swimming.\n");
if (state >= 3)
sb.AppendLine("Toxic Trace (Passive): Your physical attacks are laced with the swamp's decay. Enemies struck by your physical weapons suffer additional poison damage over time.\n");
if (state >= 4)
sb.AppendLine("Flesh and the Power It Holds (Passive): Slaying humanoid enemies drops Human Meat. Consuming it grants incredible buffs. You also gain the Corpse Run buff permanently.\n");
if (state >= 5)
sb.AppendLine("At the Heart of Winter (Parry Effect): When you successfully parry an attack, you unleash a freezing nova of frost magic around you, pushing back and damaging enemies (20 second cooldown).\n");
if (state >= 6)
sb.AppendLine("Zombie Ritual (Passive Survival): When you take fatal damage, you do not die. Instead, you enter a ghostly state, becoming immune to all damage. While in this state, your Eitr drains rapidly. If your Eitr hits zero, you truly die.\n");
if (state >= 7)
sb.AppendLine("Swarm of Terror (Retaliation): Whenever you are struck in melee combat, you automatically spawn 2 Seeker Broods to fight for you. They live for 9.5 seconds and have a 10 second cooldown.\n");
if (state >= 8)
sb.AppendLine("Steal Their Breath (Execution): While surviving in the 'Zombie Ritual' ghost state, scoring a killing blow on any enemy will instantly restore 25% of your maximum health, stop the Eitr drain, and save your life, bringing you fully back to the world of the living.\n");
knownTexts["Draugh Secrets"] = sb.ToString();
}
private static void GenerateTrolText(Dictionary<string, string> knownTexts, int state, Player player)