chore(release): v1.4.18 - Valheim hotfix flight fix, 1.0 shop fixes, Fenrir speed

Drake flight resolves ZInput.GetJoyLeftStickY at runtime, since the
hotfix dropped its bool parameter. Faction merchant TradeItems now set
the 1.0 fields StoreGui dereferences (m_tooltip, m_buyPlayerEffects),
and the Dvergar trader discount clones the whole TradeItem instead of
rebuilding four fields. Trol totem refusals return true so vanilla's
$msg_cantuseon no longer covers them. The Fenrir curse speed modifier
is the bonus alone (SE_Stats adds it), not 1 + bonus. New Discord link.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Ferdinando 2026-09-18 17:10:24 +02:00
commit c7cbd6bece
9 changed files with 59 additions and 17 deletions

View file

@ -71,7 +71,9 @@ namespace RacesOfValheim
if (!TrolRace.IsTrol())
{
player.Message(MessageHud.MessageType.Center, "The head will not shout for you.");
return false;
// With an item in hand, false makes Humanoid.UseItem cover this message with its
// generic "$msg_cantuseon"; true tells it the use was handled here.
return item != null;
}
// Yagluth's drop in hand upgrades it: a new head, and two more warbands on the list.
@ -83,24 +85,26 @@ namespace RacesOfValheim
if (item != null)
{
player.Message(MessageHud.MessageType.Center, "$msg_wontwork");
return false;
return true;
}
return OpenStore(player);
}
// Every refusal still returns true: this only runs from an item use, where false would
// make Humanoid.UseItem replace our message with the generic "$msg_cantuseon".
private bool TryUpgrade(Player player, ItemDrop.ItemData item)
{
if (IsUpgraded())
{
player.Message(MessageHud.MessageType.Center, "It has already had one.");
return false;
return true;
}
if (BossProgressionManager.GetCurrentProgressionState() < TrolTotem.UpgradeProgressionState)
{
player.Message(MessageHud.MessageType.Center, "Not until the one it belonged to has fallen.");
return false;
return true;
}
player.GetInventory().RemoveItem(item, 1);