docs: ownership lines and cross-references after the Zones and Defaults design changes
This commit is contained in:
parent
2c1490a054
commit
bd731d444b
|
|
@ -8,6 +8,7 @@ Changes on 2026-11-29:
|
||||||
- At a glance: the total is 26 days, the sum of the rows (it said 23). Each release is the sum of its features, rounded up: 1.2 (M + S) and 1.3 (M + S + S) take 3 days, and 1.4 takes 2, since its work slot moved to 1.0. The 1.3 header drops Zones (its API moved to 1.1), and the 1.0 additions header carries the other 6 of 1.0's 12 days.
|
- At a glance: the total is 26 days, the sum of the rows (it said 23). Each release is the sum of its features, rounded up: 1.2 (M + S) and 1.3 (M + S + S) take 3 days, and 1.4 takes 2, since its work slot moved to 1.0. The 1.3 header drops Zones (its API moved to 1.1), and the 1.0 additions header carries the other 6 of 1.0's 12 days.
|
||||||
- Parts 1.0 built are marked as moved where later releases still described them: the schedule slot (1.2), the previous caste (1.3), work priorities (the 1.4 row). The 1.0 DLC behaviour follows the code: names of a DLC that is off stay in a caste, the slave rows show with a "Needs Ideology" note while they matter, and a save seeded without Ideology gets its Slave caste on the first load with it. DLC rows of later releases show with a "Needs <DLC>" note while they hold a pick or value instead of hiding.
|
- Parts 1.0 built are marked as moved where later releases still described them: the schedule slot (1.2), the previous caste (1.3), work priorities (the 1.4 row). The 1.0 DLC behaviour follows the code: names of a DLC that is off stay in a caste, the slave rows show with a "Needs Ideology" note while they matter, and a save seeded without Ideology gets its Slave caste on the first load with it. DLC rows of later releases show with a "Needs <DLC>" note while they hold a pick or value instead of hiding.
|
||||||
- Blax Defaults joins "Works with the other Blax mods": animals and mechs go there, it reads `CastesApi` version 1, and the API is a contract across four repos.
|
- Blax Defaults joins "Works with the other Blax mods": animals and mechs go there, it reads `CastesApi` version 1, and the API is a contract across four repos.
|
||||||
|
- Matched with Zones' work rule areas (its 1.6) and Defaults' forbid rules (its 1.1): the ownership list says "allowed area" instead of "area", Zones' line gains its work rule areas and Defaults' line reads "go down, die or are stripped". Defaults' caste guard arrives with its animal release, now 1.3. The Zones section says why work rule areas never meet the caste area slot.
|
||||||
|
|
||||||
## At a glance
|
## At a glance
|
||||||
|
|
||||||
|
|
@ -609,21 +610,22 @@ Blax Slaves binds `HintJoinReason` and `NotifyJoined` by name and reads `Version
|
||||||
|
|
||||||
- Zones 1.5 limits people sleeping zones by caste when Castes is active, reading `Active`, `CasteLabels` and `CasteIdOf` (API version 1, Castes 1.1). Zones stores the token-prefixed ids per save and keeps them while Castes is missing.
|
- Zones 1.5 limits people sleeping zones by caste when Castes is active, reading `Active`, `CasteLabels` and `CasteIdOf` (API version 1, Castes 1.1). Zones stores the token-prefixed ids per save and keeps them while Castes is missing.
|
||||||
- Castes has no bed or sleep slot.
|
- Castes has no bed or sleep slot.
|
||||||
- The caste area slot writes the vanilla allowed area, so Zones would need no API to read it. Zones has no area check planned.
|
- The caste area slot (1.2) writes the vanilla allowed area, so Zones would need no API to read it. Zones never changes a pawn's allowed area.
|
||||||
|
- Zones 1.6 adds work rule areas: painted areas with rules such as "No cleaning", "Don't haul from here" or "Clean first". They are Zones' own grids in its MapComponent, not vanilla areas, so the caste area picker never lists them and `AreaManager.GetLabeled` (Verse/AreaManager.cs:86-96), which resolves the slot's label, never matches one. The rules apply to every pawn whatever its caste, and Zones reads no `CastesApi` member for them. The allowed area still bounds the work: the work search refuses anything outside it (RimWorld/JobGiver_Work.cs:219-226; RimWorld/ForbidUtility.cs:111-118, 157-165), so members of a caste kept to the fields never walk to a "Clean first" hospital.
|
||||||
|
|
||||||
### Blax Defaults
|
### Blax Defaults
|
||||||
|
|
||||||
- Defaults 1.2 reads `Active` and `CasteIdOf` (API version 1, Castes 1.1) 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.
|
- Defaults 1.3 reads `Active` and `CasteIdOf` (API version 1, Castes 1.1) 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 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.
|
||||||
- Defaults' forbid rules see any pawn that dies or drops its gear, colonists and slaves included, but write only the forbidden flag on the corpse and the dropped things, never a caste slot.
|
- 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.
|
- Defaults never creates, edits or assigns a policy, so Castes' starter castes still find the Slave outfit and Simple food by their starting labels.
|
||||||
|
|
||||||
### Ownership
|
### Ownership
|
||||||
|
|
||||||
- Castes: 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).
|
- 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).
|
||||||
- Zones: sleeping spots, beds by zone and every friendly drop location.
|
- 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.
|
- 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 drop gear or die. It writes when something is made or joins, and through its opt-in forbid rules when a pawn drops gear or dies. It keeps nothing in the save.
|
- 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.
|
||||||
|
|
||||||
### Shared conventions
|
### Shared conventions
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue