revert(skeleton): drop the Summon on Kill aura, keep the icon

Neither the Draugr's evil_smoke nor the torch smoke showed in game once
tinted dark. The Raise the Dead icon stays, with its per-player switch.
This commit is contained in:
kanym 2026-10-24 15:50:05 +02:00
commit e41f7b610e
4 changed files with 1 additions and 134 deletions

View file

@ -108,20 +108,6 @@ namespace RacesOfValheim
bool on = rules.SummonOnKill && SummonOnKillEnabled;
SetRaiseDeadIcon(player, on && SkeletonConfig.RaiseDeadIcon.Value);
Instance?.raisingAura.Apply(player, on && SkeletonConfig.RaiseDeadAura.Value);
SetRaisingFlag(player, on);
}
private readonly SkeletonVisuals.RaisingAura raisingAura = new SkeletonVisuals.RaisingAura();
/// <summary>Owner only, and only on a change, so other clients can draw the aura.</summary>
private static void SetRaisingFlag(Player player, bool on)
{
ZNetView nview = player.GetComponent<ZNetView>();
if (nview == null || !nview.IsValid() || !nview.IsOwner()) return;
ZDO zdo = nview.GetZDO();
if (zdo.GetBool(SkeletonVisuals.RaisingZdoKey, false) != on) zdo.Set(SkeletonVisuals.RaisingZdoKey, on);
}
private static void SetRaiseDeadIcon(Player player, bool on)
@ -355,8 +341,6 @@ namespace RacesOfValheim
headFlame.Apply(Player.m_localPlayer, false);
RestoreJawBone();
SetRaiseDeadIcon(Player.m_localPlayer, false);
raisingAura.Apply(Player.m_localPlayer, false);
SetRaisingFlag(Player.m_localPlayer, false);
if (Player.m_localPlayer.transform.localScale != Vector3.one)
{