RacesOfValheim/JotunnModStub/Factions
kanym b566adbfb9 fix(factions): allied mobs spare a race's buildings with nobody home
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.
2026-10-17 15:50:41 +02:00
..
FactionHostilityPatch.cs fix(factions): allied mobs spare a race's buildings with nobody home 2026-10-17 15:50:41 +02:00
FactionMerchant.cs factionsmerchants 2026-08-06 10:13:57 +02:00
FactionMerchantCatalog.cs feat(text): merchants, troops and the hive's shelf come from translation files 2026-09-28 18:50:54 +02:00
FactionMerchantJokes.cs feat(text): merchants, troops and the hive's shelf come from translation files 2026-09-28 18:50:54 +02:00
FactionMerchantPatches.cs Merge branch 'war-vulture' into main 2026-08-25 18:52:10 +02:00
FactionMerchantRuntime.cs factionsmerchants 2026-08-06 10:13:57 +02:00
FactionMerchantSellPanel.cs 1.0 compatibility 2026-09-10 18:05:24 +02:00
FactionMerchantSetup.cs feat(text): merchants, troops and the hive's shelf come from translation files 2026-09-28 18:50:54 +02:00
FactionPieceTruce.cs fix(factions): allied mobs spare a race's buildings with nobody home 2026-10-17 15:50:41 +02:00
FactionRaids.cs feat(factions): no raids made only of allies, and allies spare the whole base 2026-09-28 21:41:29 +02:00
FactionsConfig.cs feat(factions): no raids made only of allies, and allies spare the whole base 2026-09-28 21:41:29 +02:00