The truce only ever patched BaseAI.IsEnemy, but MonsterAI.UpdateTarget picks a structure to attack (m_targetStatic) through a completely separate gate - m_attackPlayerObjects, a flag baked into the prefab (true for Troll among others) - and never calls IsEnemy at all. A Trol player, exempt from a cave's resident Troll in combat, could still watch it flatten a workbench built moments earlier in its own cave. FactionStaticTargetPatch postfixes UpdateTarget and vetoes the pick if a same-faction player is within 20 m (matching FindRandomStaticTarget's own 10 m search radius with room to spare), rather than trying to intercept the two private target-selection methods themselves. Confirmed fixed by build+playtest. |
||
|---|---|---|
| .. | ||
| FactionHostilityPatch.cs | ||
| FactionMerchant.cs | ||
| FactionMerchantCatalog.cs | ||
| FactionMerchantJokes.cs | ||
| FactionMerchantPatches.cs | ||
| FactionMerchantRuntime.cs | ||
| FactionMerchantSellPanel.cs | ||
| FactionMerchantSetup.cs | ||