chore(release): v1.4.0 - Factions, Configuration Manager, Trol log-grab fix
Documents everything that landed on main since 1.3.12 (Factions peace + merchants, BepInEx Configuration Manager across all nine races, Dvergar/Aswid eye glow, Skeleton head-visibility and menu-preview fixes) and bumps the version accordingly. Also fixes a real bug found while writing this changelog: Trol's True Form log-grab was piggybacked on pressing the True Form key a second time, with no on-screen hint it existed. It now has its own keybind (default E, configurable like every other race's keys) and a proper crosshair prompt patched onto vanilla's own HoverText component - the first attempt added a second, competing Hoverable component to the log and it was silently never reached, since Unity's GetComponentInParent<Hoverable>() only returns the first match and vanilla's own HoverText was already on the object.
This commit is contained in:
parent
a0f0b46579
commit
851247ea60
7 changed files with 84 additions and 16 deletions
|
|
@ -130,6 +130,11 @@ namespace RacesOfValheim
|
|||
{
|
||||
TryTrueForm();
|
||||
}
|
||||
|
||||
if (TrolConfig.GrabLogKey.Value.IsDown())
|
||||
{
|
||||
TryGrabLog();
|
||||
}
|
||||
}
|
||||
|
||||
// Check log durability
|
||||
|
|
@ -176,18 +181,9 @@ namespace RacesOfValheim
|
|||
|
||||
if (Player.m_localPlayer.GetSEMan().HaveStatusEffect("SE_TrolTrueForm".GetStableHashCode()))
|
||||
{
|
||||
if (BossProgressionManager.GetCurrentProgressionState() >= 7)
|
||||
{
|
||||
GameObject hoverObj = Player.m_localPlayer.GetHoverObject();
|
||||
if (hoverObj != null)
|
||||
{
|
||||
TreeLog log = hoverObj.GetComponentInParent<TreeLog>();
|
||||
if (log != null)
|
||||
{
|
||||
TrolLogWeapon.GrabLog(Player.m_localPlayer, log);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Grabbing a log now has its own key (TrolConfig.GrabLogKey, see TryGrabLog) -
|
||||
// pressing True Form again while already transformed no longer tries to grab
|
||||
// whatever you happen to be looking at.
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -205,6 +201,21 @@ namespace RacesOfValheim
|
|||
}
|
||||
}
|
||||
|
||||
private void TryGrabLog()
|
||||
{
|
||||
if (BossProgressionManager.GetCurrentProgressionState() < 7) return;
|
||||
if (!Player.m_localPlayer.GetSEMan().HaveStatusEffect("SE_TrolTrueForm".GetStableHashCode())) return;
|
||||
|
||||
GameObject hoverObj = Player.m_localPlayer.GetHoverObject();
|
||||
if (hoverObj == null) return;
|
||||
|
||||
TreeLog log = hoverObj.GetComponentInParent<TreeLog>();
|
||||
if (log != null)
|
||||
{
|
||||
TrolLogWeapon.GrabLog(Player.m_localPlayer, log);
|
||||
}
|
||||
}
|
||||
|
||||
private System.Collections.IEnumerator TransformToTrueFormRoutine()
|
||||
{
|
||||
isTransforming = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue