12 KiB
Blax Castes feature plan
Complete, Blax Castes holds every setting you would otherwise set by hand on each colonist, slave and prisoner: policies, medical care, schedule, work, loadout, allowed area, combat and medical behaviour, prisoner treatment and the DLC switches. Every way a pawn can join or change status, children included, puts it into the right caste by itself, and a pawn that comes back gets its old caste. Castes travel between colonies as files, show at a glance, and the other Blax mods read and steer them through one API.
Status: 1.0.0 is on the Workshop (item 3848261054) since 2026-11-29. Everything else here is planned; the specs are in docs/design.md.
Planned 2026-12-01. This file decides what the mod covers and in which order the work goes. Features are grouped by the player problem they solve, never by how long they take.
Status words: Shipped (in a release), Designed (specced in docs/design.md, section named in quotes), New (first planned here, no spec yet), Idea (in scope, built when its trigger comes).
Scope
Castes covers the per-pawn settings of humanlike colonists, slaves and prisoners, the join and status-change defaults that put pawns into castes, and the tools to manage, see and move castes. The shared ownership list in docs/design.md ("Ownership") is the contract between the Blax mods.
It leaves:
- slave status, trade, suppression, rebellion and slave medicine to Blax Slaves;
- 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-cataloguebranch is accepted); - guests and visitors to Hospitality, colony-wide modes (emergency, threat swaps) to Better Pawn Control Forked and AAAA.
1. What a caste holds
Every new pawn needs about 20 settings by hand, spread over the Assign, Schedule and Work tabs, the health and gear tabs and a few gizmos. A caste should hold all of them, so a pawn is set up the moment it joins.
Shipped in 1.0: apparel, food, drug and reading policy, medical care, schedule, work priorities, and the Weapons Tab Reborn loadout.
Steps:
- Where and how they fight. Designed, "Allowed area" and "Hostility, self-tend, carried medicine, fire at will". Comes first because area and hostility are the defaults Better Pawn Control (228k) and 1trickPwnyta's Defaults (75k) set that Castes doesn't replace yet, and a Guard caste needs them.
- Allowed area: by name, applied on arrival on any map, with a "Create area" button when it's missing. Needs nothing.
- Hostility response, fire at will, self-tend with a minimum Medicine skill, carried medicine with a warning when the colony runs short. Needs nothing.
- Prisoner caste. Designed, "Default prisoner interaction". The interaction mode a prisoner gets on capture (Reduce resistance, Enslave, Convert) plus the bloodfeed and hemogen farm toggles. Skips colonists Blax Laws jailed, once Laws' join reasons exist (area 2, step 2). Needs: Enslave, Reduce will and Convert need Ideology; bloodfeed and hemogen farm need Biotech; Study and Interrogate need Anomaly.
- DLC settings. Designed, "DLC switches". Room and apparel requirements, psyfocus target and entropy limit (Royalty); hemogen packs and deathrest auto-wake (Biotech). Each row switches off with a "Needs " note without its DLC.
- Settings that change with the day and the year. Both hold several values in one slot and deal them out by a rule, so they share the manager row and the Follow rule.
- Shift schedules: up to three timetables per caste, members dealt out in turn, "Rebalance" spreads them again. Designed, "Shift schedules".
- Seasonal apparel: New. A caste can hold a winter apparel policy next to its normal one. When a member's map turns winter, members still on the normal policy switch, and back in spring; pawns set by hand keep theirs. Demand: "Curious about how to set seasonal clothing" (Steam discussions, 2020-02-15, https://steamcommunity.com/app/294100/discussions/0/3440124566885187088/), where players swap policies by hand or with Better Pawn Control presets; the search found no mod that switches them by season. Hook:
GenLocalDate.Season(Thing)per member in the existing 2500-tick sweep, written through the Follow rule. Signatures compile against the 1.7.5021 reference assemblies; behaviour not checked against the code.
- Combat Extended loadout. New, waits for a Combat Extended 1.7 build. A caste sets the CE loadout (ammo, sidearms, gear) the way it sets the Weapons Tab Reborn loadout. Demand: Combat Extended has 419k subscribers (Workshop 2890901044, tagged up to 1.6, updated 2026-10-15, read 2026-12-01). Hook: CE's per-pawn loadout setter, bound by reflection; not checked against the code.
2. Every way a pawn joins
Vanilla resets settings on every join and status change, and each path (bought, rescued, born, freed) needs its own default. Castes should know every path and let you override it per pawn.
Shipped in 1.0: five rows (bought as slave, bought as colonist, new colonist, new slave, new prisoner), every status change between colonist, slave and prisoner, the old caste on return within 60 days, leaving on sale or escape, starter castes wired to the rows.
Steps:
- A row for every path, adult and child. Designed, "Every join path, adult and child". Starting, enslaved, recruited prisoner, captured, wanderer, quest joiner, rescued, lodger arrived and recruited, emancipated, recruited slave, born, child chosen as colonist or slave, came of age, creepjoiner; a child dropdown per row; a safety net on spawn for paths nobody hooks. Needs: slave rows Ideology, child rows Biotech, creepjoiner Anomaly. Comes first because the other Blax mods' join reasons land in these rows.
- Join reasons from the other Blax mods. Castes reads them through the join API (area 5, step 2).
- Blax Slaves: runaway returned, slave recruited, indenture served, bought indentured, contract returned. Designed, "Join reasons from Blax Slaves".
- Blax Laws:
blax.laws.jailed(new-prisoner row, never the captured row; no prisoner mode; the former-caste record outlivesformerCasteDays) andblax.laws.released(old caste whatever its age). New, specified in the Laws design ("Castes keeps the caste"); lands once that design is accepted.
- Pre-picks per pawn. Designed, "Pre-pick in the prisoner and slave tabs". The prisoner tab picks the caste when recruited or enslaved, the slave tab the caste when freed; a pick beats every default. Its store is what the PrePick API (area 5, step 3) writes into.
3. Managing castes
Turning a running colony into castes, and seeing who is in which, takes too many clicks today.
Shipped in 1.0: the caste manager, the Caste column in the Assign, Schedule and Work tabs, starter castes, "Assign by status", "Apply to all members", "Create Slave outfit", the cold warning and overlap warnings.
Steps:
- Tools. Designed, "Tools": "Caste gizmo", "New caste from pawn", "Policy delete guard", "Ideo conflict warning". Comes first because 1.0 has no manual way to put a prisoner in a caste, and building castes from an existing colony takes a caste per click.
- Caste gizmo on selected pawns, prisoners included.
- New caste from a pawn's current settings.
- Policy delete guard: a policy a caste uses can't be deleted.
- Ideoligion clash warning, for example Social drugs for a drug-hating ideoligion. Needs Ideology.
- Seeing castes. Designed, "Caste colour and inspect line". A colour per caste in the column and the gizmo, and a "Caste: X" line in the inspect pane.
- Colony bar grouped by caste. Idea, waits for demand. [LTO] Colony Groups (231k) has no 1.7 build (last update 2025-07-18, read 2026-12-01). Build it if players ask after the tools ship and no colonist bar mod with groups reaches 1.7.
- Own gizmo icon. Idea, needs art. The vanilla icon works.
4. Castes across saves
Every new colony rebuilds the same castes and policies by hand.
- Caste templates. Designed, "Caste templates across saves". Export a caste with the policies it uses to a file, import it in another colony, and start new games from your templates instead of the starter set. A template made with DLCs imports without them and reports what it dropped. Replaces Better Policies, Export Agency and Save My Settings, partly. Comes after the slots in area 1, because a template copies every slot.
5. The API for the other Blax mods
The sibling mods read castes and tell Castes why a pawn joined. Every step adds members to BlaxCastes.CastesApi and raises its version; existing members never change.
- Read-only API (version 1). Designed, "Read-only API (version 1)".
Version,Active,CasteIdOf,CasteLabels. Waited on by Zones' sleeping zones by caste, Defaults' caste guard for animals and mechs, and Laws' caste checks. - 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 with or after area 2, step 1. - 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 3).
- Caste values for sibling features (version 4). New, open question 1. A sibling registers a per-caste value (a checkbox or a choice), Castes stores it per caste and shows it in the manager under the sibling's name, and the sibling reads it for a pawn and applies it itself. Asked for by Slaves' backlog (blood donor and indenture term per caste) and Laws' backlog ("may serve in court").
Order
- Read-only API (area 5, step 1). Zones' sleeping zones by caste and Defaults' caste guard wait on it, and it changes nothing in play.
- Tools (area 3, step 1). They close the gaps 1.0 leaves in a running colony.
- Where and how they fight (area 1, step 1). It adds settings no caste holds yet; the join work below refines rows 1.0 already fills.
- A row for every path (area 2, step 1), then the join API (area 5, step 2), so Slaves' and Laws' reasons land in their own rows from the start.
- Pre-picks (area 2, step 3), then PrePick (area 5, step 3).
- Seeing castes (area 3, step 2).
- Prisoner caste (area 1, step 2), after the join API, so colonists Laws jailed are skipped from the first build.
- DLC settings, then settings that change with the day and the year (area 1, steps 3 and 4).
- Caste templates (area 4), once the slot list is complete.
- Waiting on a trigger: Combat Extended loadout (a CE 1.7 build), 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).
Left out
Reasons are in docs/design.md "Cut": strict sync mode, a slave interaction mode slot (Slaves), a baby autofeed slot, creating missing vanilla policies, a bed or sleeping-zone slot (Zones), a trade-dialog picker owned by Castes (Slaves), colony-wide presets and emergency mode, Ideology roles, caste mood, precept or stat rules, appearance bundles, guest defaults, a rule engine for assignment, periodic re-sync. Animals and mechs are Blax Defaults'.
Open questions for Fabian
- Caste values for sibling features (area 5, step 4). Should Castes store per-caste values that Slaves and Laws register, such as "blood donor" or "may serve in court"? Recommendation: yes, built when the first sibling feature needs one. Castes stores and shows the value, the sibling owns its meaning and applies it, so no mod writes the other's settings. The ownership line in all five docs gains "and per-caste values other Blax mods register, which those mods apply".