fix(skeleton): Auto-Resurrect on the real deathblow; Summon on Kill toggle

Auto-Resurrect was decided in the Character.Damage prefix on the raw
hit: before armour, blocking and resistances, with poison and fire
counted in full. With good armour it fired on almost any hit. Damage
also runs on the attacker's owner, so on a dedicated server a mob
owned by the server or another player skipped the check entirely. It
now runs in an ApplyDamage prefix, on the victim's own client, against
the damage that is about to land. The rising-from-the-ground immunity
is checked there too.

Summon on Kill gets a toggle key (G, Skeleton - Keybinds) and a
gamepad radial entry. The choice is saved on the character, on by
default. A "Raise the Dead" status icon with the Dead Raiser's
picture shows while it is on. Texts in English, Italian and Russian.
This commit is contained in:
kanym 2026-10-24 15:28:04 +02:00
commit 53f6fb71a2
10 changed files with 158 additions and 35 deletions

View file

@ -72,6 +72,9 @@ namespace RacesOfValheim
new Entry { Race = "Sverm", Label = "Ravager Strain", Key = () => SvermConfigManagement.RavagerKey, Icon = "TrophySeekerBrute" },
new Entry { Race = "Skeleton", Label = "Summon on Kill", Key = () => SkeletonConfig.SummonToggleKey, Icon = "StaffSkeleton",
Available = player => SkeletonProgression.GetRules(BossProgressionManager.GetCurrentProgressionState()).SummonOnKill },
// Any race: shown to whoever RaceClawSet has claws for.
new Entry { Race = null, Label = "Grow Claws", Key = () => RaceClawsConfig.ActivateKey, Icon = "TrophyWolf",
Available = player => RaceClawSet.For(player) != null },