feat(factions): merchant catalog entries and hostility rules
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e8a0bff0a6
commit
91eb5ca8e5
3 changed files with 68 additions and 10 deletions
|
|
@ -17,10 +17,16 @@ namespace RacesOfValheim
|
|||
[HarmonyPatch(typeof(BaseAI), nameof(BaseAI.IsEnemy), new System.Type[] { typeof(Character), typeof(Character) })]
|
||||
public static class FactionHostilityPatch
|
||||
{
|
||||
// "Fuling" was in this set and is not a prefab: the Fuling family is named Goblin* in code,
|
||||
// so the basic Fuling and the Archer were never exempted for any of the three races that
|
||||
// read this set (Trenta, Trol, Furling) while the Berserker and Shaman were. In a camp that
|
||||
// is the same as no truce at all - the unexempted Fulings open fire, the player defends
|
||||
// themselves, and every Berserker in earshot joins in through damage retaliation, which
|
||||
// IsEnemy has no say over. Verified against the asset manifest, not the wiki's display names.
|
||||
private static readonly HashSet<string> NeraForestaMobs = new HashSet<string>
|
||||
{
|
||||
"Greydwarf", "Greydwarf_Elite", "Greydwarf_Shaman",
|
||||
"Fuling", "GoblinBrute", "GoblinShaman",
|
||||
"Goblin", "GoblinArcher", "GoblinBrute", "GoblinShaman",
|
||||
"Troll",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue