fix(trenta): Purple Rain heals the Trenta who casts it

The heal skipped the caster, so a lone Trenta cast a heal that touched
no one. The caster now gets the same flat heal as its allies; the
compendium line and the config description say so.
This commit is contained in:
kanym 2026-10-29 02:21:49 +01:00
commit 87db3e03a6
5 changed files with 8 additions and 4 deletions

View file

@ -194,6 +194,10 @@ namespace RacesOfValheim
SpawnPurpleRainVfx(player);
// The Trenta stands in its own rain and is healed by it too. It used to be left out, so
// a lone Trenta cast a heal that never touched anyone.
player.Heal(TrentaConfig.PurpleRainHealAmount, true);
HashSet<Character> hit = new HashSet<Character>();
foreach (Collider collider in Physics.OverlapSphere(player.transform.position, TrentaConfig.PurpleRainRadius))
{

View file

@ -110,7 +110,7 @@ namespace RacesOfValheim
PurpleRainRadius = config.Bind(purpleRain, "Radius", 8f,
new ConfigDescription("Meters from the player the spray reaches.", new AcceptableValueRange<float>(1f, 30f)));
PurpleRainHealAmount = config.Bind(purpleRain, "Ally Heal Amount", 40f,
new ConfigDescription("Flat heal applied to every ally hit.", new AcceptableValueRange<float>(0f, 200f)));
new ConfigDescription("Flat heal applied to you and to every ally hit.", new AcceptableValueRange<float>(0f, 200f)));
PurpleRainPoisonDamage = config.Bind(purpleRain, "Enemy Poison Damage", 40f,
new ConfigDescription("Flat poison damage applied to every enemy hit.", new AcceptableValueRange<float>(0f, 200f)));