1.0 compatibility

This commit is contained in:
Ferdinando 2026-09-10 18:05:24 +02:00
commit 6193b3ee2d
33 changed files with 712 additions and 49 deletions

View file

@ -45,6 +45,12 @@ namespace RacesOfValheim
public static ConfigEntry<float> AuraDamagePerTick;
public static ConfigEntry<float> AuraTickInterval;
// ─── Elemental Magic experience ─────────────────────────────────────────
// See SkadiMagicSkill for why a cast's budget is split across its projectiles and why the
// aura's share is a fraction of a cast's.
public static ConfigEntry<float> MagicSkillGainPerCast;
public static ConfigEntry<float> AuraSkillGainPerTick;
// ─── Passive combat ──────────────────────────────────────────────────
public static ConfigEntry<float> BonusFrostDamagePerState;
@ -126,6 +132,12 @@ namespace RacesOfValheim
AuraTickInterval = config.Bind(aura, "Tick Interval", 1f,
new ConfigDescription("Seconds between aura damage ticks.", new AcceptableValueRange<float>(0.1f, 5f)));
const string magicSkill = "Skadi - Elemental Magic Skill";
MagicSkillGainPerCast = config.Bind(magicSkill, "Gain Per Cast", 1f,
new ConfigDescription("Elemental Magic experience for one cast that connects - the Cold Spell and all three dragon breaths. Split across the projectiles a cast throws, so a ten-shard burst is worth the same as one shard. Nothing is earned by a shot that hits no one. 0 turns spell experience off.", new AcceptableValueRange<float>(0f, 5f)));
AuraSkillGainPerTick = config.Bind(magicSkill, "Aura Gain Per Tick", 0.1f,
new ConfigDescription("Elemental Magic experience for one Frost Aura tick that burned at least one enemy - once per tick, not once per enemy. Deliberately a fraction of a cast: the aura ticks every second on its own. 0 turns aura experience off.", new AcceptableValueRange<float>(0f, 1f)));
const string scale = "Skadi - Dragon Form Scale";
DrakeScale = config.Bind(scale, "Drake Scale", 0.9f,
new ConfigDescription("Model scale while transformed into the Drake (tier 3-4).", new AcceptableValueRange<float>(0.1f, 2f)));