From f4eaf9e53c1f20b69884a057e31dac742455ece5 Mon Sep 17 00:00:00 2001 From: kanym Date: Fri, 7 Aug 2026 11:48:31 +0200 Subject: [PATCH] fix(aswid): use the real Goblin prefab ids for Fuling-family food nutrition Same root cause as the Factions fix (9287bd0): mobToTrophyMap keyed the Goblin family by "Fuling"/"FulingShaman"/"FulingBerserker" - none of which are real prefab ids - instead of "Goblin"/"GoblinShaman"/"GoblinBrute". The trophy icon lookup was unaffected (it already used the correct TrophyGoblin/TrophyGoblinShaman/TrophyGoblinBrute ids on the dictionary's value side), but the food-tuning block gated on PrefabManager.Cache.GetPrefab(mobName) succeeding silently never ran for any of the three - so their food fell back to generic CookedMeat nutrition instead of a Goblin-scaled amount, and never got the 20-minute humanoid-prey burn time the "StartsWith Fuling" check was meant to grant them. Renamed the check to "StartsWith Goblin" to match. Verified in-game. --- JotunnModStub/Aswid/AswidRace.cs | 8 ++++---- README.md | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/JotunnModStub/Aswid/AswidRace.cs b/JotunnModStub/Aswid/AswidRace.cs index e3b1765..4424892 100644 --- a/JotunnModStub/Aswid/AswidRace.cs +++ b/JotunnModStub/Aswid/AswidRace.cs @@ -24,9 +24,9 @@ namespace RacesOfValheim { "Leech", "TrophyLeech" }, { "Hatchling", "TrophyHatchling" }, { "Lox", "TrophyLox" }, - { "Fuling", "TrophyGoblin" }, - { "FulingShaman", "TrophyGoblinShaman" }, - { "FulingBerserker", "TrophyGoblinBrute" }, + { "Goblin", "TrophyGoblin" }, // "Goblin" is the real prefab id - "Fuling" is only the in-game display name + { "GoblinShaman", "TrophyGoblinShaman" }, + { "GoblinBrute", "TrophyGoblinBrute" }, { "Deathsquito", "TrophyDeathsquito" }, { "Hare", "TrophyHare" }, { "Seeker", "TrophySeeker" }, @@ -137,7 +137,7 @@ namespace RacesOfValheim { float foodHp = Mathf.Min(c.m_health / 2f, 150f); float burnTime = c.m_health * 2f; - if (mobName == "Cultist" || mobName.StartsWith("Fenring") || mobName.StartsWith("Fuling")) + if (mobName == "Cultist" || mobName.StartsWith("Fenring") || mobName.StartsWith("Goblin")) { burnTime = 1200f; // 20 minutes } diff --git a/README.md b/README.md index 5f444b1..98cd072 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,7 @@ Please write to us on my Discord server: **https://discord.gg/gbBEK2VTE** - **Skeleton**: Your chosen race now shows correctly on the main-menu character preview. - **Skeleton**: The burning skull (Moder tier+) no longer sheds a lit torch that falls to the ground - the flame's clone is stripped down to just the particles and light it actually needs. - **Factions**: The base Goblin (in-game display name "Fuling") wasn't actually covered by Black Forest peace or trading for any race - the code used the display name "Fuling" instead of the real prefab id "Goblin". Trenta, Trol and Furling now get real peace with it, and it trades like every other Black Forest mob. +- **Aswid**: The same "Fuling" mix-up meant the Goblin family's food never got its intended values - it silently fell back to generic nutrition instead of a Goblin-scaled amount and the promised 20-minute humanoid-prey burn time. Fixed for the Goblin, the Goblin Shaman and the Goblin Brute alike. **v1.3.12** - **Skadi**: Dragon flight reworked. The stasis that holds a form level after you stop powering now lasts 5 seconds instead of 2. Hold Shift with W to spend 15 stamina a second on a burst of speed - the only part of flight that costs anything, since the drake arrives at The Elder long before you could pay just to stay airborne, and running dry drops you back to normal speed rather than out of the sky. S beats backwards along your aim, pitch included: look down and press it to rise away from whatever you are watching, without turning to face away from it.