1.0 compatibility

This commit is contained in:
Ferdinando 2026-09-10 18:05:24 +02:00
commit 6193b3ee2d
33 changed files with 712 additions and 49 deletions

View file

@ -211,6 +211,10 @@ namespace RacesOfValheim
public bool UseItem(Humanoid user, ItemDrop.ItemData item) => false;
// New in Valheim 1.0: Hoverable gained this. Every vanilla implementation returns a
// serialised m_hoverOffset, which is 0 unless the prefab sets one, so 0 is vanilla behaviour.
public float GetHoverOffset() => 0f;
public string GetHoverName() => Title;
public string GetHoverText()
@ -444,6 +448,10 @@ namespace RacesOfValheim
public bool UseItem(Humanoid user, ItemDrop.ItemData item) => false;
// New in Valheim 1.0: Hoverable gained this. Every vanilla implementation returns a
// serialised m_hoverOffset, which is 0 unless the prefab sets one, so 0 is vanilla behaviour.
public float GetHoverOffset() => 0f;
public string GetHoverName() => SvermHiveMarketPiece.DisplayName;
public string GetHoverText()