docs: plans checked against the sibling plans
One ownership list in all five design docs, with a Laws line and the open question named on each part that waits for one. Defaults' animal medical care and new-map areas, Laws' release hint for jailed slaves and the sentence caste its confinement would need (area 5, step 5).
This commit is contained in:
parent
493cb4172c
commit
55276238a4
|
|
@ -4,6 +4,11 @@ Every slave you buy needs its apparel, food, drug and reading policy set by hand
|
|||
|
||||
What the mod covers and in which order the work goes: `docs/features.md`. This file holds the specs.
|
||||
|
||||
Changes on 2026-12-01, the five Blax plans checked against each other:
|
||||
|
||||
- The ownership list is the same in all five design docs and has a Laws line. Castes' line names Laws' Maintain only and Release exception and says "colonists, slaves and prisoners", since Defaults writes animals' medical care; parts that wait on an open question name it.
|
||||
- "Blax Defaults" lists medical care per species and Defaults' named areas for new maps; "Blax Laws" adds the release hint for a slave Laws jailed and the sentence caste Laws' confinement would need (`docs/features.md`, area 5, step 5).
|
||||
|
||||
Changes on 2026-12-01, the feature plan (Fabian: chunk by what belongs together, never by time or size):
|
||||
|
||||
- `docs/features.md` is the plan of record for scope and order. It groups every feature into five areas: what a caste holds, every way a pawn joins, managing castes, castes across saves, and the API for the other Blax mods. New there, with no spec here yet: cold-weather apparel, a Combat Extended loadout slot, a slave interaction default, Blax Laws' join reasons and caste values for sibling features (open questions 1 and 2 there cover the last two).
|
||||
|
|
@ -615,7 +620,7 @@ Comes right after "Where and how they fight" (`docs/features.md`, area 4 and Ord
|
|||
|
||||
## The API for the other Blax mods
|
||||
|
||||
Each step adds members to `CastesApi` and raises its version; the contract is in "Works with the other Blax mods". Caste values for sibling features (version 4) are an open question in `docs/features.md`, area 5.
|
||||
Each step adds members to `CastesApi` and raises its version; the contract is in "Works with the other Blax mods". Caste values for sibling features (version 4) are an open question in `docs/features.md`, area 5, and the sentence caste for Blax Laws (area 5, step 5) waits on Laws' open question 2.
|
||||
|
||||
### Read-only API (version 1)
|
||||
|
||||
|
|
@ -647,7 +652,7 @@ Each step adds members to `CastesApi` and raises its version; the contract is in
|
|||
|
||||
### PrePick for the trade row (version 3)
|
||||
|
||||
- **Players get:** Nothing visible yet. Once Blax Slaves adds its trade-row picker (in its backlog), you pick a caste for each pawn you buy, next to the buy-as-slave toggle.
|
||||
- **Players get:** Nothing visible yet. Once Blax Slaves ships its trade-row picker (its Trade area, a step of its own that waits for this), you pick a caste for each pawn you buy, next to the buy-as-slave toggle.
|
||||
- **How:** `CastesApi.PrePick(Pawn, string casteId)`, API Version 3. It takes the token-prefixed id from `CasteLabels` and writes into the pre-pick store ("Pre-picks per pawn") under the bought reasons. Blax Slaves owns the picker in its trade row; Castes adds no trade dialog patch.
|
||||
- **Settings:** covered by `enableApi`.
|
||||
- **Replaces:** none.
|
||||
|
|
@ -704,25 +709,29 @@ Blax Slaves binds `HintJoinReason` and `NotifyJoined` by name and reads `Version
|
|||
### Blax Defaults
|
||||
|
||||
- Defaults' animal defaults read `Active` and `CasteIdOf` (API version 1, the read-only API) to skip any animal or mech that has a caste. Today none can; the guard keeps Castes in charge if it ever adds animal or mech castes.
|
||||
- Animals and mechs get their join defaults from Defaults: area, follow flags and training per species, and auto-repair, work mode and area per mech kind. Defaults never writes to a humanlike pawn; Castes' join hooks take only humanlike pawns (`JoinHooks.Watching`). Both mods postfix `Pawn.SetFaction`, and neither writes the other's pawns.
|
||||
- Animals and mechs get their join defaults from Defaults: area, follow flags, training and medical care per species, and auto-repair, work mode and area per mech kind. Defaults never writes to a humanlike pawn, its medical care included; Castes' join hooks take only humanlike pawns (`JoinHooks.Watching`). Both mods postfix `Pawn.SetFaction`, and neither writes the other's pawns.
|
||||
- Defaults' forbid rules (its 1.1) see any pawn that goes down, dies or is stripped, colonists and slaves included, but write only the forbidden flag on the corpse and on the things it drops or is stripped of, never a caste slot.
|
||||
- Defaults never creates, edits or assigns a policy, so Castes' starter castes still find the Slave outfit and Simple food by their starting labels.
|
||||
- Areas: Defaults' "Areas every new map starts with" makes named allowed areas on every new home map, so a caste's area label can resolve there from the first day. Castes' "Create area" makes a missing one on demand. Both make plain vanilla allowed areas found by label, so each mod finds the other's.
|
||||
|
||||
### Blax Laws
|
||||
|
||||
Pending acceptance of the Laws design (its `design/act-catalogue` and `plan/features` branches).
|
||||
Laws is designed, not built.
|
||||
|
||||
- Laws reads `Active` and `CasteIdOf` (API version 1, the read-only API) for its caste checks. It hints `blax.laws.jailed` from its `CapturedBy` prefix and `blax.laws.released` from its `GenGuest.PrisonerRelease` prefix (API version 2, the join API); Castes reads a hint inside those calls and drops it at the end of the tick.
|
||||
- Laws reads `Active` and `CasteIdOf` (API version 1, the read-only API) for its caste checks. It hints `blax.laws.jailed` from its `CapturedBy` prefix, and `blax.laws.released` from its `GenGuest.PrisonerRelease` prefix and, for a slave it jailed, right before the `SetGuestStatus` call that makes it a slave again (API version 2, the join API); Castes reads a hint inside those calls and drops it at the end of the tick.
|
||||
- `blax.laws.jailed` uses the new-prisoner row like every arrest, and the former-caste record it leaves outlives `formerCasteDays`. `blax.laws.released` gives the old caste back whatever its age.
|
||||
- Laws writes Maintain only on its own convicts two ticks after the capture, and Release when the sentence is served. Castes never writes a prisoner mode on an arrested colonist ("Default prisoner interaction"), so the two never write the same pawn; Laws' write stays as its own guard.
|
||||
- Once the Laws design is accepted, Castes' ownership line gains "except the Maintain only and Release modes Laws sets on colonists it jailed", and a Laws line joins the list below.
|
||||
- Laws' "Confinement for N days" would put a convict into a sentence caste and back. Castes plans that as area 5, step 5 of `docs/features.md`, only if Fabian says yes to Laws' open question 2.
|
||||
|
||||
### Ownership
|
||||
|
||||
- Castes: 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), and the planned ones: the cold-weather apparel policy, the Combat Extended loadout, the Royalty and Biotech switches (room and apparel requirements, psyfocus target, entropy limit, hemogen pack use, deathrest auto-wake) and the slave interaction mode a new slave starts on (open question 2 in `docs/features.md`).
|
||||
- Zones: 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.
|
||||
- Slaves: slave status, trade, prices, suppression, rebellion, slave medicine and the slave economy. Slaves routes its silver payouts through `ZonesApi.TryFindDropSpot`, with `DropCellFinder.TradeDropSpot` as fallback. Pawns are never routed into zones.
|
||||
- Defaults: 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.
|
||||
The same list stands in all five Blax design docs. A part that waits on Fabian's answer names the open question.
|
||||
|
||||
- Castes: every per-pawn policy default of colonists, slaves and prisoners (apparel, food, drug, reading, medical care, schedule, work priorities, weapon loadout, allowed area, hostility, self-tend, carried medicine, fire at will, prisoner interaction except the Maintain only and Release modes Laws sets on colonists it jailed), and the planned ones: the cold-weather apparel policy, the Combat Extended loadout, the Royalty and Biotech switches (room and apparel requirements, psyfocus target, entropy limit, hemogen pack use, deathrest auto-wake), the slave interaction mode a new slave starts on (Castes' open question 2) and per-caste values other Blax mods register, which those mods apply (Castes' open question 1).
|
||||
- Zones: sleeping spots, beds by zone, every friendly drop location and per-cell work rules (work rule areas), with path rules on those areas (Zones' open question 3); it never changes a pawn's work priorities or allowed area.
|
||||
- Slaves: slave status (except the status Laws gives back to a slave it jailed, Laws' open question 1), the slave interaction modes (vanilla's plus Recruit and Convert), trade, prices, suppression, rebellion, slave medicine and the slave economy. Slaves routes its silver payouts through `ZonesApi.TryFindDropSpot`, with `DropCellFinder.TradeDropSpot` as fallback. Pawns are never routed into zones.
|
||||
- Defaults: starting settings of vanilla stockpiles and growing zones, storage buildings, production bills, workbenches, buildings, animals and mechs, the named areas a new map starts with, 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.
|
||||
- Laws: the colony's lawbook (which acts are crimes, at which stage, how severe and how they are punished), cases, sentences, trials, judges, attorneys and law votes. It acts through vanilla arrest, capture, release and guilt plus its own non-lethal subdue job, and talks colonists and slaves out of a break, except slaves while Slaves' wardens calm breaks. For the colonists it jailed, and only for them, it writes the prisoner interaction mode (Maintain only after the arrest, Release when the sentence ends) and gives back what the sentence took: bed, grave, throne, deathrest casket, ideoligion role, mech work modes and the weapon the arrest dropped. It puts a slave it jailed back into slavery (Laws' open question 1). It never sets policies, work priorities, allowed areas, zones or suppression. It keeps its state in one GameComponent.
|
||||
|
||||
### Shared conventions
|
||||
|
||||
|
|
@ -734,7 +743,7 @@ Pending acceptance of the Laws design (its `design/act-catalogue` and `plan/feat
|
|||
|
||||
- Multiplayer support: needs a 1.7 build of the Multiplayer mod, and real sync needs two clients. The groundwork is in place (tick-based apply, every write through `CasteManager`). The Workshop page says "Multiplayer: not supported yet" until then.
|
||||
- Colony bar grouped by caste, like [LTO] Colony Groups (231k subs, no 1.7 build): L and UI-heavy, only as a late optional release.
|
||||
- Animals and mechs: Blax Defaults (per-species join defaults). Its species and mech kind rows cover follow, training, area and control group work modes, so animal and mech castes are not planned here.
|
||||
- Animals and mechs: Blax Defaults (per-species join defaults). Its species and mech kind rows cover follow, training, area, medical care and control group work modes, so animal and mech castes are not planned here.
|
||||
- A custom 64x64 gizmo icon: polish only, the vanilla icon works.
|
||||
|
||||
## Cut
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ It leaves:
|
|||
- slave status, trade, suppression, rebellion, slave medicine and the slave interaction modes themselves to Blax Slaves (which mode a new slave starts on is open question 2);
|
||||
- beds, sleeping zones, drop spots and work rule areas to Blax Zones (Zones filters its sleeping zones by caste, Castes has no bed slot);
|
||||
- animals, mechs, storage, bills, buildings and forbid rules to Blax Defaults;
|
||||
- crimes, sentences and court to Blax Laws, which sets the Maintain only and Release modes on colonists it jailed (that exception enters the ownership list once the Laws design on its `design/act-catalogue` branch is accepted);
|
||||
- crimes, sentences and court to Blax Laws, which sets the Maintain only and Release modes on colonists it jailed (the shared ownership list carries that exception);
|
||||
- guests and visitors to Hospitality, colony-wide modes (emergency, threat swaps) to Better Pawn Control Forked and AAAA.
|
||||
|
||||
## 1. What a caste holds
|
||||
|
|
@ -88,6 +88,7 @@ The sibling mods read castes and tell Castes why a pawn joined. Every step adds
|
|||
2. **Join API (version 2).** Designed, "Join API (version 2)". `HintJoinReason`, `NotifyJoined`. Waited on by Slaves' recruit and indenture features and Laws' "Castes keeps the caste". Ships after the adult join paths (area 2, step 1), together with the Blax Slaves reasons (area 2, step 3).
|
||||
3. **PrePick (version 3).** Designed, "PrePick for the trade row (version 3)". Waited on by Slaves' trade-row caste picker. Needs the pre-pick store (area 2, step 4).
|
||||
4. **Caste values for sibling features (version 4).** New, open question 1. A sibling feature needs a value per caste (a checkbox or a choice) that the sibling reads for a pawn and applies itself. Asked for by Slaves' backlog (blood donor and indenture term per caste) and Laws' backlog ("may serve in court"). Which mod stores the value is the open question.
|
||||
5. **Sentence caste for Blax Laws.** New, only if Fabian says yes to Laws' open question 2 ("Confinement for N days"). Laws puts a convict into a caste the player picks for sentences, with that caste's allowed area and work priorities, and returns it to its old caste with `blax.laws.released` when the sentence ends. The convict's status doesn't change, so no join hook sees it; the spec decides whether a third Laws reason sent through `NotifyJoined`, with its own row and a former-caste record, is enough, or whether a new member is needed. Needs the join API (step 2).
|
||||
|
||||
## Order
|
||||
|
||||
|
|
@ -101,7 +102,7 @@ The sibling mods read castes and tell Castes why a pawn joined. Every step adds
|
|||
8. Seeing castes (area 3, step 2).
|
||||
9. Prisoner and slave treatment (area 1, step 2), after the adult join paths, whose arrested reason keeps prisoner modes off your own arrested colonists and imprisoned slaves. The slave interaction part once open question 2 is answered.
|
||||
10. DLC settings, then settings that change with the day and the year (area 1, steps 3 and 4).
|
||||
11. Waiting on a trigger: Combat Extended loadout (a CE 1.7 build), Blax Laws' join reasons (the Laws design accepted), caste values for sibling features (Fabian's answer and the first sibling feature that needs it), colony bar groups (demand), multiplayer (a 1.7 build of the Multiplayer mod; the groundwork is in place).
|
||||
11. Waiting on a trigger: Combat Extended loadout (a CE 1.7 build), Blax Laws' join reasons (the Laws design accepted), caste values for sibling features (Fabian's answer and the first sibling feature that needs it), the sentence caste for Laws (Fabian's yes to Laws' open question 2, then Laws' confinement step), colony bar groups (demand), multiplayer (a 1.7 build of the Multiplayer mod; the groundwork is in place).
|
||||
|
||||
## Left out
|
||||
|
||||
|
|
@ -113,5 +114,5 @@ Reasons are in `docs/design.md` "Cut": strict sync mode, a baby autofeed slot, c
|
|||
- Castes stores them: a sibling registers a value, Castes keeps it per caste, shows it in the caste manager under the sibling's name, copies it on duplicate and exports it with templates. Cost: a registration member in the API, other mods' keys in Castes' save (kept while that mod is missing, like the names of a DLC that is off), and Castes drawing a setting it does not own.
|
||||
- The sibling stores them, keyed by the token-prefixed caste id, as Zones does for its sleeping zones (it keeps them while Castes is missing). No new API, but the value sits in the sibling's own window, a duplicated caste starts without it and templates do not carry it.
|
||||
- Either way, a value read when the pawn joins needs one more read member. Castes applies a join one tick after the status change, so while Slaves decides an indenture inside the trade (`Pawn.PreTraded`), `CasteIdOf` still returns the old caste or none. `PendingCasteIdOf(Pawn)` would return the caste a queued join or a pre-pick will give.
|
||||
- Recommendation: Castes stores them, built when the first sibling feature needs one. The player sets up a caste in one window, and duplicate and templates carry its values; the sibling still owns their meaning and applies them, so no mod writes the other's settings. The ownership line in all five docs then gains "and per-caste values other Blax mods register, which those mods apply".
|
||||
2. **Default slave interaction mode (area 1, step 2).** Castes or Blax Slaves? Recommendation: Castes. It sets every other default a new slave gets and plans the matching prisoner default, and Slaves' plan already sends policy defaults for new slaves to Castes. Slaves keeps its modes and what they do. If Slaves should own it instead, the default moves into Slaves' plan and leaves this one.
|
||||
- Recommendation: Castes stores them, built when the first sibling feature needs one. The player sets up a caste in one window, and duplicate and templates carry its values; the sibling still owns their meaning and applies them, so no mod writes the other's settings. The shared ownership line in all five docs already lists "per-caste values other Blax mods register, which those mods apply" under Castes, marked with this question; if the sibling stores them, that part leaves the line.
|
||||
2. **Default slave interaction mode (area 1, step 2).** Castes or Blax Slaves? Recommendation: Castes. It sets every other default a new slave gets and plans the matching prisoner default, and Slaves' plan already sends policy defaults for new slaves to Castes. Slaves keeps its modes and what they do. If Slaves should own it instead, the default moves into Slaves' plan and leaves this one, and the shared ownership line moves it from Castes to Slaves.
|
||||
|
|
|
|||
Loading…
Reference in New Issue