fix(furling): Through Fire and Flames goes out when the player changes race
The ability is vanilla's Burning set to 999 minutes. FurlingRace.Update returned before ticking it for anyone who was not a Furling, and ResetRace never removed it, so the fire followed the player onto any race and came back visible if they picked the Furling again. The tick now runs for every race and puts out a Burning longer than an hour when the player is not a tier 8 Furling; ResetRace does the same at once.
This commit is contained in:
parent
19d331789a
commit
5af7c0205d
3 changed files with 33 additions and 5 deletions
|
|
@ -150,6 +150,10 @@ namespace RacesOfValheim
|
|||
// this time with nobody left to rename or repaint it.
|
||||
player.GetSEMan().RemoveStatusEffect("Cold".GetStableHashCode());
|
||||
|
||||
// BURNING, the same story: Through Fire and Flames is vanilla's Burning set to 999
|
||||
// minutes, and it followed the player onto whatever race came next.
|
||||
FurlingFireAbility.RemovePermanentBurning(player);
|
||||
|
||||
ZNetView nview = player.GetComponent<ZNetView>();
|
||||
if (nview != null && nview.IsValid()) nview.GetZDO().Set("RacesOfValheim_Race", "Human");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue