docs: Blax Laws owns the court place, decisions of 2026-12-03

This commit is contained in:
Fabian @ Blax Software 2026-12-03 17:49:49 +01:00
parent 9940da35be
commit b91cb1b22a
1 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,10 @@ Drag a delivery zone and everything you buy from orbital or caravan traders, plu
Status: 1.0 and 1.1 are built and on the Workshop; sleeping zones, work rule areas, storage deliveries, cargo pods and the removal button are designed, no code yet. What the mod covers and the build order: [features.md](features.md). Checked against the RimWorld 1.7.5021 game code on 2026-11-29. RimWorld 1.7, package id `blax.zones`. From the first release a plain unsubscribe leaves a loadable save with vanilla zones intact; once the removal button ships, it removes the mod with no errors.
Changes on 2026-12-03, Fabian's decisions on Blax Laws (Laws' features.md, "Decided 2026-12-03"):
- "Works with the other Blax mods" notes that Laws' court place is a building reference in Laws' component and that "Lose own bedroom" unclaims beds and never assigns one. The Laws ownership line gains lose own bedroom or role and the Castes sentence castes.
Changes on 2026-12-01, Fabian's decisions ([features.md](features.md), "Decided 2026-12-01"):
- Work rule areas step 2 (mine, cut, plant work, build and repair first) comes right after step 1, before storage deliveries, and path rules right after it.
@ -807,7 +811,7 @@ Save-safe zone storage shipped with 1.0; its spec stays there ("Save-safe zone s
- Zones: sleeping spots, beds by zone, every friendly drop location and per-cell work and path rules (work rule areas); 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), 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. It never sets policies, work priorities, allowed areas, zones or suppression. It keeps its state in one GameComponent.
- 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. A sentence to lose the own bedroom or role unclaims that bed or role for its time and gives it back the same way; Laws never assigns a pawn another bed. Punishments of daily life go through a Castes sentence caste. It never sets policies, work priorities, allowed areas, zones or suppression. It keeps its state in one GameComponent.
- Slaves routes its silver payouts through `ZonesApi.TryFindDropSpot` and spawns the pod at the returned cell with `TradeUtility.SpawnDropPod`, with `DropCellFinder.TradeDropSpot` and `DropThingsNear` as fallback (Blax Slaves docs/roadmap.md, purchase ledger and payouts). Pawns are never routed into zones. Payouts follow the zone's orbital checkbox and, once `TryFindDropSpot` reads it, the global "Route orbital trade" switch; both tooltips say so while Slaves is active.
- Buying: Zones never routes bought people. Slaves' buy-mode sets `guest.joinStatus` before vanilla `Pawn.PreTraded`, and Castes classifies by the final status in its own PreTraded scope. Zones touches neither.
- Slave sleeping zones use vanilla `BedOwnerType.Slave`, so `Alert_NeedSlaveBeds` counts them with no patch (Alert_NeedSlaveBeds.cs:43). The alert runs only with Ideology (`requireIdeology`, Alert_NeedSlaveBeds.cs:14).
@ -815,7 +819,7 @@ Save-safe zone storage shipped with 1.0; its spec stays there ("Save-safe zone s
- Blax Defaults ("Starting settings for storage, bills, crops, buildings, animals and mechs"): it hooks only `Designator_ZoneAddStockpile` (its 1.0) and `Designator_ZoneAdd_Growing` (its growing-zone defaults), and Zones' zones subclass `Zone` and `Designator_ZoneAdd` directly with their own tabs (`ITab_Delivery`, the animal-zone and people-zone tabs), so no Defaults hook or button reaches a delivery or sleeping zone. A new stockpile or shelf starts unflagged; "Make default" never copies Zones' flags, which live in Zones' component. Defaults' button sits inside the storage tab and Zones' storage-delivery gizmos on the gizmo bar. Zone beds come from `AddCell`, not a frame, so Defaults' build scope for more storage never sees them. Neither mod touches the home area. Defaults' forbid rules (its 1.1) act only inside `Pawn.Kill`, `Pawn_HealthTracker.MakeDowned` and `Pawn.Strip` (Pawn.cs:3895; Pawn_HealthTracker.cs:837), never on goods Zones delivers, so arriving goods keep the forbid flag of the vanilla call. If Defaults ever adds a rule for them, it must act where Zones' routed groups also pass, because routed reward groups drop through `MakeDropPodAt` and orbital goods through `SpawnDropPod`, never through `DropThingsNear`.
- Work rule areas are per cell and never touch a pawn: Castes keeps the allowed area (its allowed-area slot), and the work search already refuses things outside it (JobGiver_Work.cs:219-226; ForbidUtility.cs:111-118, 157-165), so a caste kept to the fields never walks to a "Clean first" hospital and Zones needs no CastesApi member. They aren't vanilla Areas, so they never show in Castes' area picker or match its area labels (`AreaManager.GetLabeled`, AreaManager.cs:86-96). Slaves are colonists for the work search and follow the rules like anyone. With Defaults the two compose: its forbid rules decide whether dropped gear is forbidden (its 1.1), and allow matched gear only once no enemy that can still fight is on the map; work rule areas decide whether haulers fetch it, so a killbox with "Don't haul from here" keeps allowed loot lying until the rule is unticked, and "Haul first" brings it in before other hauling. Neither mod hooks the other's code.
- Each mod keeps its state in its own Map or Game components, or none (Defaults), so removing one leaves the others' saves intact.
- Blax Laws (designed, not built): its jail takes any prisoner bed, so its arrests use prisoner zone beds like any vanilla prisoner bed, with no code on either side. Its court place and courtrooms are stored by ThingID in Laws' own component, never as a zone, and Zones adds no jail, court or courtroom zone. Laws reads nothing from Zones.
- Blax Laws (designed, not built): its jail takes any prisoner bed, so its arrests use prisoner zone beds like any vanilla prisoner bed, with no code on either side. Its court place is a building reference in Laws' own component, stored by ThingID, never a zone; courtrooms are the court place's room, read when used, and Zones adds no jail, court or courtroom zone. Laws' "Lose own bedroom" unclaims the convict's bed and keeps it out of bedroom beds; it never assigns a bed, so where the convict sleeps is vanilla's choice or "Sleeping zones by caste" for a sentence caste. Laws reads nothing from Zones.
- Shared conventions: patches applied one class at a time from a `[StaticConstructorOnStartup]` class, logging "[Blax Zones] N patches applied"; a ModSettings toggle for every feature (zone storage has none, it is the save format); any DLC combination, core only included (see "DLC support"); every hook body in try/catch with a one-time log; the headless in-game test mod copied from blax-castes/Tests (BlaxCastesTests harness, run-tests.ps1) as Tests/BlaxZonesTests, plus a phase 3 that simulates removing the mod.
## Backlog