Merge branch 'main' into localisation
This commit is contained in:
commit
92c80e3b87
5 changed files with 27 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "RacesOfValheim",
|
||||
"description": "A Valheim mod that adds ten custom playable races (Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton, Sverm, Trenta, Trol) each with unique abilities, traits, race stations and a deep boss-driven progression system.",
|
||||
"version_number": "1.5.11",
|
||||
"version_number": "1.5.12",
|
||||
"website_url": "",
|
||||
"dependencies": [
|
||||
"denikson-BepInExPack_Valheim-5.4.2333",
|
||||
|
|
|
|||
|
|
@ -33,6 +33,11 @@ namespace RacesOfValheim
|
|||
}
|
||||
|
||||
private readonly List<HiddenRenderer> m_hidden = new List<HiddenRenderer>();
|
||||
|
||||
// What we hid, kept apart from forceRenderingOff. Other mods write that flag too: Valkyr
|
||||
// sets its hair's forceRenderingOff on every visual update, so the flag alone made the
|
||||
// rescan record the hair a second time, already disabled, and the revert left it off.
|
||||
private readonly HashSet<Renderer> m_tracked = new HashSet<Renderer>();
|
||||
private float m_nextRescan;
|
||||
private float m_nextLog;
|
||||
private string m_context = "";
|
||||
|
|
@ -107,8 +112,20 @@ namespace RacesOfValheim
|
|||
// the cape along with the body mesh itself.
|
||||
foreach (Renderer r in GetComponentsInChildren<Renderer>(true))
|
||||
{
|
||||
if (r == null || r.forceRenderingOff) continue; // already ours
|
||||
if (r == null) continue;
|
||||
|
||||
if (m_tracked.Contains(r))
|
||||
{
|
||||
// Already ours: re-assert in case another mod cleared the flag.
|
||||
r.forceRenderingOff = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Hidden by someone else (Valkyr hides the vanilla body and hair this way): leave
|
||||
// it to them, or the revert would show it.
|
||||
if (r.forceRenderingOff) continue;
|
||||
|
||||
m_tracked.Add(r);
|
||||
m_hidden.Add(new HiddenRenderer { Renderer = r, WasEnabled = r.enabled });
|
||||
r.enabled = false;
|
||||
r.forceRenderingOff = true;
|
||||
|
|
@ -132,6 +149,7 @@ namespace RacesOfValheim
|
|||
}
|
||||
|
||||
m_hidden.Clear();
|
||||
m_tracked.Clear();
|
||||
enabled = false;
|
||||
return restored;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
public const string PluginGUID = "com.nandor.racesofvalheim";
|
||||
public const string PluginName = "Races Of Valheim";
|
||||
public const string PluginVersion = "1.5.11";
|
||||
public const string PluginVersion = "1.5.12";
|
||||
|
||||
private readonly Harmony harmony = new Harmony(PluginGUID);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ Support the mod: [Patreon — NandorTheModder](https://www.patreon.com/c/NandorT
|
|||
|
||||
---
|
||||
|
||||
## New in v1.5.11
|
||||
## New in v1.5.12
|
||||
|
||||
The Trol's True Form now wears Valheim's own forest troll, with its punches, ground slam and log swings; players with a model mod can keep the old True Form with `Trol - True Form` → `Legacy True Form`. The Sverm's Ravager attacks on the Seeker Brute's own animations: the ram lunges and the slam strikes with both claws. Race stations show and require their race in the build panel, and most of them now go on floors and inside caves. The Ulv sleeps when you sit. Full details in the [changelog](#v1511).
|
||||
Compatibility fix for Valkyr (female body replacer): your hair no longer disappears when you leave a monster form. Full details in the [changelog](#v1512).
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -450,6 +450,9 @@ Both halves have an off switch under `Factions` in Configuration Manager: **Fact
|
|||
|
||||
## Changelog
|
||||
|
||||
### v1.5.12
|
||||
- **Fix - hair gone after a form with Valkyr:** with the Valkyr body replacer, leaving a monster form (Skadi drake, Aswid bat or mist, Fenrir forms, Sverm Ravager, Trol True Form) brought the body back without its hair. Valkyr hides and shows its own hair, and the mod mistook that for a part it still had to hide, so it never turned the hair back on. Your hair now returns with the rest of the body. Thanks to BoredLizard for the report.
|
||||
|
||||
### v1.5.11
|
||||
- **New - Trol True Form wears a real troll:** True Form hides your Trol and puts Valheim's own forest troll in its place, as tall as the old True Form, in your Trol's skin colour. Every player sees it. Weapons are put away while it lasts: left click punches, right click slams the ground, and with a log in hand they become the troll's two log swings. The slam breaks trees and rocks around it and digs into the ground, never inside a ward you have no access to. Throw Rock plays the troll's own throw. You stand still through every attack. Damage is half a real troll's, scaled by your Clubs skill like a club, and the True Form and tier melee bonuses still add on top. New options under `Trol - True Form`: `Troll Model Size`, `Troll Attack Damage`, `Troll Attack Reach`, `Ground Slam Crater`.
|
||||
- **New - Legacy True Form:** prefer the old True Form, your own Trol grown bigger with weapons in hand? Turn on `Trol - True Form` → `Legacy True Form`. Use it with EnhancedValheimVRM or another player model mod, which needs the player's body to stay visible. Each player picks their own and other players see you the way you picked; a server cannot force it. Thanks to the players who answered the Discord poll.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "RacesOfValheim",
|
||||
"description": "A Valheim mod that adds ten custom playable races (Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton, Sverm, Trenta, Trol) each with unique abilities, traits, race stations and a deep boss-driven progression system.",
|
||||
"version_number": "1.5.11",
|
||||
"version_number": "1.5.12",
|
||||
"website_url": "",
|
||||
"dependencies": [
|
||||
"denikson-BepInExPack_Valheim-5.4.2333",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue