fix(factions): use the real 'Goblin' prefab id, not the display name 'Fuling'
FactionHostilityPatch's NeraForestaMobs set and FactionMerchantCatalog's Shops dictionary both keyed the base Goblin by its in-game display name, "Fuling", instead of its actual prefab id. Confirmed against the game's own asset paths (Assets/Characters/Goblin/, TrophyGoblin.prefab) rather than assumption - "Fuling" appears nowhere as a real prefab, only as flavor text (kept as-is on the shop's own DisplayName, which is just UI label text). Neither peace nor merchant status ever actually applied to a plain Goblin for any Black Forest race (Trenta, Trol, Furling) as a result - only the GoblinBrute/GoblinShaman entries, which already used their real ids, worked. Confirmed a related but separate bug while investigating, left alone per request: AswidRace.cs's mobToTrophyMap also keys off "Fuling" and feeds it into a live prefab lookup for food nutrition tuning - same wrong-id pattern, milder failure mode (falls back to generic values rather than breaking anything). Not fixed here.
This commit is contained in:
parent
78010c8fb0
commit
9287bd060d
4 changed files with 7 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ namespace RacesOfValheim
|
|||
private static readonly HashSet<string> NeraForestaMobs = new HashSet<string>
|
||||
{
|
||||
"Greydwarf", "Greydwarf_Elite", "Greydwarf_Shaman",
|
||||
"Fuling", "GoblinBrute", "GoblinShaman",
|
||||
"Goblin", "GoblinBrute", "GoblinShaman", // "Goblin" is the real prefab id - "Fuling" is only the in-game display name
|
||||
"Troll",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue