Merge branch 'fix-aswid-smoke-persist' into main

This commit is contained in:
kanym 2026-08-12 18:14:31 +02:00
commit 796cf9d9af

View file

@ -116,6 +116,21 @@ namespace RacesOfValheim
player.GetSEMan().RemoveStatusEffect(SvermConfig.StingerSE.GetStableHashCode());
player.GetSEMan().RemoveStatusEffect(SvermConfig.StingerCdSE.GetStableHashCode());
// COLD, which is not one of ours at all - and that is exactly why it has to go.
//
// The Aswid does not add a status effect for its night aura; it takes over the vanilla
// Cold that the night hands out anyway. Aswid_ColdStatus_Patch renames the instance to
// "Night Aura" and AswidRace.ApplyNightAuraTint paints its vfx_Cold particles black and
// doubles them, both applied to the LIVE instance hanging off the player and marked
// with NightAuraTintFlag so it is only done once.
//
// Nothing here used to remove it, so the blackened smoke - and the "Night Aura" label -
// simply stayed on through a race change and followed the player onto a Dvergar. There
// is no untinting it: the original colours and emission rates were never recorded. So
// the instance goes, and the night hands out a fresh, ordinary Cold within moments -
// this time with nobody left to rename or repaint it.
player.GetSEMan().RemoveStatusEffect("Cold".GetStableHashCode());
ZNetView nview = player.GetComponent<ZNetView>();
if (nview != null && nview.IsValid()) nview.GetZDO().Set("RacesOfValheim_Race", "Human");