diff --git a/docs/roadmap.md b/docs/roadmap.md index 8d2d7e5..928e08c 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -503,7 +503,7 @@ An optional release. It is the riskiest feature and players barely ask for it, s ## Works with the other Blax mods -- **Package ids:** blax.slaves (this mod), blax.castes, blax.zones. No hard dependencies. About.xml gets loadAfter entries for blax.castes and blax.zones next to the existing brrainz.harmony and Mlie.SYRMoreSlaves. No sibling goes into modDependencies, where Harmony stays the only entry, and there is no assembly reference. Load order is Castes, Zones, Slaves. Neither sibling lists blax.slaves, so there is no loadAfter cycle. +- **Package ids:** blax.slaves (this mod), blax.castes, blax.zones, blax.defaults. No hard dependencies. About.xml gets loadAfter entries for blax.castes and blax.zones next to the existing brrainz.harmony and Mlie.SYRMoreSlaves. No sibling goes into modDependencies, where Harmony stays the only entry, and there is no assembly reference. Load order is Castes, Zones, Slaves. No sibling lists blax.slaves, so there is no loadAfter cycle. Defaults lists no sibling and no sibling lists Defaults, so its position doesn't matter. - **Detection:** one shared Compat helper, Compat.IsActive(id) = ModLister.GetActiveModWithIdentifier(id, ignorePostfix: true) != null. It moves out of SlaveHarm.cs in 1.2 and serves the siblings, the Compat tab and every stand-down check. - **Binding:** at startup BlaxSlavesStartup resolves sibling APIs with AccessTools.TypeByName and AccessTools.Method into cached delegates and reads their int Version. A missing sibling or method makes that call a silent no-op, and every Slaves feature works alone. APIs only change additively. - **Calls into BlaxCastes.CastesApi:** HintJoinReason(Pawn, string) right before a join Castes classifies itself (it expires at the end of the tick); NotifyJoined(Pawn, string) one tick after the status is final, for joins Castes can't see. @@ -520,7 +520,7 @@ An optional release. It is the riskiest feature and players barely ask for it, s - **Not used yet:** CastesApi.CasteIdOf, CasteLabels and PrePick, for the trade-row caste picker in Backlog. - **Calls into BlaxZones.ZonesApi:** TryFindDropSpot(map, thing, out cell) inside BlaxDelivery.Drop for every silver payout (ransom and buy-back in 1.4, order premiums in 2.2, wages in 2.3). The pod spawns exactly on that cell with TradeUtility.SpawnDropPod, as the ZonesApi contract asks; DropCellFinder.TradeDropSpot with DropThingsNear is the fallback. Payouts follow the zone's orbital checkbox. Pawns are never routed into zones: returned runaways and hired-out slaves use the vanilla spot. TryFindDropSpot and Version are all of ZonesApi version 1; the shared infirmary only touches Medical beds. - **BlaxSlaves.SlavesApi (static):** Version from 1.3. IsSafe(Pawn) from 1.3. Loyalty(Pawn) and TermDaysLeft(Pawn) from 2.1. -- **Ownership:** Castes owns every per-pawn policy default (apparel, food, drug, reading, medical care, schedule, work priorities, weapon loadout, area, hostility, self-tend, carried medicine, fire at will, prisoner interaction), so Slaves never sets a policy: the 1.3 medical-care keeper stands down when Castes is loaded, and blood donor and term have no "new slaves" default here. Zones owns sleeping spots, beds by zone and every friendly drop location. Defaults owns the starting settings of storage, bills, crops, buildings, animals and mechs, and what the game forbids when pawns drop gear or die. Slaves owns slave status, trade, prices, suppression, rebellion, slave medicine and the slave economy. +- **Ownership:** Castes owns every per-pawn policy default (apparel, food, drug, reading, medical care, schedule, work priorities, weapon loadout, allowed area, hostility, self-tend, carried medicine, fire at will, prisoner interaction), so Slaves never sets a policy: the 1.3 medical-care keeper stands down when Castes is loaded, and blood donor and term have no "new slaves" default here. Zones owns sleeping spots, beds by zone, every friendly drop location and per-cell work rules (work rule areas); it never changes a pawn's work priorities or allowed area. Defaults owns the starting settings of vanilla stockpiles and growing zones, storage buildings, production bills, workbenches, buildings, animals and mechs, and what the game forbids when pawns go down, die or are stripped. It writes when something is made or joins, and through its opt-in forbid rules when a pawn goes down, dies or is stripped. It keeps nothing in the save. Slaves owns slave status, trade, prices, suppression, rebellion, slave medicine and the slave economy. - **Shared conventions:** patches applied one class at a time from a [StaticConstructorOnStartup] class with the "[Blax Slaves] N patches applied" log line (already in BlaxSlavesStartup); a ModSettings toggle for every feature; the headless test mod pattern (Tests/BlaxSlavesTests harness, run-tests.ps1), which Castes and Zones copy. ## Backlog