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

@ -216,7 +216,7 @@
"rov_compendium_trenta_purple_rain_g_key": "[The Elder Unlock] Purple Rain ('G' Key):",
"rov_compendium_trenta_sap_heartwood_conduct_lightning_turn": "Sap and heartwood conduct lightning and turn away the dead: you take half damage from Lightning and Spirit. But kindling burns and the woodsman's axe still bites - you take half again as much from Fire and Slash. Meat, fish, eggs and honey are nothing you can stomach; only what grows from the ground sustains you, and it does so for $1x as long as it would a normal body.\n",
"rov_compendium_trenta_secrets_heartwood": "The Secrets of the Heartwood\n",
"rov_compendium_trenta_spray_toxic_pollen_bursts_out": "A spray of toxic pollen bursts out to $1 meters: every ally caught in it is healed $2, every foe is poisoned for $3. $4-second cooldown, shortened to $5 seconds while transformed into Muspell.\n",
"rov_compendium_trenta_spray_toxic_pollen_bursts_out": "A spray of toxic pollen bursts out to $1 meters: you and every ally caught in it are healed $2, every foe is poisoned for $3. $4-second cooldown, shortened to $5 seconds while transformed into Muspell.\n",
"rov_compendium_trenta_stand_still_daylight_roof_over": "Stand still in daylight, roof over nothing but sky, for $1 unbroken seconds, and roots take hold: $2 ticks of healing follow, $3% of your maximum health apiece, along with a Rested buff lasting $4 minutes - longer with every boss you have felled.\n",
"rov_compendium_trenta_swamp_has_nothing_left_spoil": "The swamp has nothing left to spoil in you. Poison cannot touch you, the Wet effect cannot land on you, and swimming costs no stamina at all.\n",
"rov_compendium_trenta_swarm_hornets_has_made_its": "A swarm of hornets has made its home in your branches and never leaves. Any foe that comes within $1 meters is stung for $2 poison and pierce damage every $3 seconds until it breaks off or falls.\n",

View file

@ -216,7 +216,7 @@
"rov_compendium_trenta_purple_rain_g_key": "[Sblocco Antico] Purple Rain (tasto 'G'):",
"rov_compendium_trenta_sap_heartwood_conduct_lightning_turn": "Linfa e durame conducono il fulmine e respingono i morti: subisci metà dei danni da fulmine e da spirito. Ma la legna da ardere brucia e l'ascia del boscaiolo morde ancora: subisci una volta e mezza i danni da fuoco e da taglio. Carne, pesce, uova e miele non riesci a mandarli giù; ti sostiene solo ciò che cresce dalla terra, e lo fa $1 volte più a lungo che per un corpo normale.\n",
"rov_compendium_trenta_secrets_heartwood": "I segreti del durame\n",
"rov_compendium_trenta_spray_toxic_pollen_bursts_out": "Uno spruzzo di polline tossico esplode fino a $1 metri: ogni alleato colpito viene curato di $2, ogni nemico viene avvelenato per $3. Ricarica di $4 secondi, ridotta a $5 secondi da trasformato in Muspell.\n",
"rov_compendium_trenta_spray_toxic_pollen_bursts_out": "Uno spruzzo di polline tossico esplode fino a $1 metri: tu e ogni alleato colpito venite curati di $2, ogni nemico viene avvelenato per $3. Ricarica di $4 secondi, ridotta a $5 secondi da trasformato in Muspell.\n",
"rov_compendium_trenta_stand_still_daylight_roof_over": "Resta fermo alla luce del giorno, con sopra la testa nient'altro che cielo, per $1 secondi di fila, e le radici attecchiscono: seguono $2 impulsi di cura, ciascuno del $3% della salute massima, insieme a un bonus Riposato di $4 minuti, più lungo per ogni boss che hai abbattuto.\n",
"rov_compendium_trenta_swamp_has_nothing_left_spoil": "La palude non ha più niente da guastare in te. Il veleno non può toccarti, l'effetto Bagnato non può colpirti, e nuotare non costa stamina.\n",
"rov_compendium_trenta_swarm_hornets_has_made_its": "Uno sciame di calabroni ha fatto casa tra i tuoi rami e non se ne va più. Ogni nemico che arriva entro $1 metri viene punto per $2 danni da veleno e perforanti ogni $3 secondi, finché non si allontana o cade.\n",

View file

@ -216,7 +216,7 @@
"rov_compendium_trenta_purple_rain_g_key": "[Награда: Древний] Purple Rain (клавиша «G»):",
"rov_compendium_trenta_sap_heartwood_conduct_lightning_turn": "Смола и сердцевина древесины проводят молнию и отваживают нежить: вы получаете половинный урон от молнии и духа. Но сухие ветви быстро разгораются, а топор дровосека безжалостен — урон от огня и рубящих атак увеличен в полтора раза. Мясо, рыба, яйца и мед противны вашей натуре; лишь то, что произрастает из земли, дает вам силы, и действует в $1 раз дольше, чем на обычного человека.\n",
"rov_compendium_trenta_secrets_heartwood": "Тайны Сердцевины\n",
"rov_compendium_trenta_spray_toxic_pollen_bursts_out": "Выброс токсичной пыльцы в радиусе $1 м: каждый союзник внутри исцеляется на $2 ед., а каждый враг отравляется на $3 ед. урона. Перезарядка: $4 с (сокращается до $5 с в облике Муспелля).\n",
"rov_compendium_trenta_spray_toxic_pollen_bursts_out": "Выброс токсичной пыльцы в радиусе $1 м: вы и каждый союзник внутри исцеляетесь на $2 ед., а каждый враг отравляется на $3 ед. урона. Перезарядка: $4 с (сокращается до $5 с в облике Муспелля).\n",
"rov_compendium_trenta_stand_still_daylight_roof_over": "Постойте неподвижно под чистым небом при дневном свете в течение $1 с, и корни войдут в почву: последуют $2 тактов исцеления по $3% от макс. здоровья каждый, а также эффект «Бодрость» на $4 минут — время действия растет с каждым павшим боссом.\n",
"rov_compendium_trenta_swamp_has_nothing_left_spoil": "Болотам нечего осквернять в вашем теле. Яд не может навредить вам, эффект сырости не накладывается, а плавание вовсе не расходует выносливость.\n",
"rov_compendium_trenta_swarm_hornets_has_made_its": "Рой шершней свил гнездо в вашей кроне. Любой враг, приблизившийся на расстояние ближе $1 м, получает $2 ед. урона ядом и колющими ударами каждые $3 с, пока не отступит или не погибнет.\n",

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)));