FactionStaticTargetPatch only vetoed a mob's piece target while an allied player stood within 100 m. Inside a troll cave that was the collapse bug: the Trol walks out, the resident Troll (its prefab has m_attackPlayerObjects) finds nobody to stop it, and the cooking station built there is in pieces when the Trol comes back. Every piece now carries the race of its builder on its ZDO, stamped in Piece.SetCreator at placement, and in Piece.Awake for older pieces the first time their builder loads them, so no timer and no scan. An allied mob of that race can't pick the piece as a target and its blows do it no damage, which also covers a swing at a foreign wall that would have hit the Trol's workbench next to it. A mob holding a grudge against the builder gets no such truce. |
||
|---|---|---|
| .. | ||
| FactionHostilityPatch.cs | ||
| FactionMerchant.cs | ||
| FactionMerchantCatalog.cs | ||
| FactionMerchantJokes.cs | ||
| FactionMerchantPatches.cs | ||
| FactionMerchantRuntime.cs | ||
| FactionMerchantSellPanel.cs | ||
| FactionMerchantSetup.cs | ||
| FactionPieceTruce.cs | ||
| FactionRaids.cs | ||
| FactionsConfig.cs | ||