warvulture

This commit is contained in:
Ferdinando 2026-08-21 11:22:52 +02:00
commit 4b95e705e7
9 changed files with 418 additions and 12 deletions

View file

@ -50,6 +50,13 @@ namespace RacesOfValheim
public static ConfigEntry<float> LastStandMaxArmorBonus;
public static ConfigEntry<float> ThornsReflectPercent;
// ─── Root of the Elder (tier 3+, defensive piece) ─────────────────────
public static ConfigEntry<float> ElderRootHealth;
public static ConfigEntry<float> ElderRootSelfHealDelay;
public static ConfigEntry<float> ElderRootSelfHealPercentPerSecond;
public static ConfigEntry<float> ElderRootRepairRadius;
public static ConfigEntry<float> ElderRootRepairInterval;
// ─── Homecoming Portal (tier 6+) ──────────────────────────────────────
public static ConfigEntry<float> PortalCooldown;
public static ConfigEntry<float> PortalLifetime;
@ -113,6 +120,18 @@ namespace RacesOfValheim
ThornsReflectPercent = config.Bind(lastStand, "Thorns Reflect Percent", 0.2f,
new ConfigDescription("Fraction of every hit taken reflected back at the attacker, tier 5+.", new AcceptableValueRange<float>(0f, 1f)));
const string elderRoot = "Trenta - Root of the Elder";
ElderRootHealth = config.Bind(elderRoot, "Health", 300f,
new ConfigDescription("Max structural health of the piece itself.", new AcceptableValueRange<float>(50f, 2000f)));
ElderRootSelfHealDelay = config.Bind(elderRoot, "Self-Heal Delay", 10f,
new ConfigDescription("Seconds without taking a hit before the piece starts healing itself.", new AcceptableValueRange<float>(0f, 60f)));
ElderRootSelfHealPercentPerSecond = config.Bind(elderRoot, "Self-Heal Percent Per Second", 0.02f,
new ConfigDescription("Fraction of max health regained per second once healing starts.", new AcceptableValueRange<float>(0f, 1f)));
ElderRootRepairRadius = config.Bind(elderRoot, "Repair Radius", 5f,
new ConfigDescription("Meters from the piece within which every player-built thing gets repaired.", new AcceptableValueRange<float>(1f, 30f)));
ElderRootRepairInterval = config.Bind(elderRoot, "Repair Interval", 60f,
new ConfigDescription("Seconds between repair pulses.", new AcceptableValueRange<float>(5f, 600f)));
const string portal = "Trenta - Homecoming Portal";
PortalCooldown = config.Bind(portal, "Cooldown", 300f,
new ConfigDescription("Seconds between casts, tier 6+.", new AcceptableValueRange<float>(0f, 3600f)));