docs: the indentured term hint goes out at the capture

Laws calls Slaves' term member from hook K's prefix, in the same tick
as the imprisonment.
This commit is contained in:
Fabian @ Blax Software 2026-12-01 19:35:54 +01:00
parent 3fb454b217
commit 8ffc99f2e2
1 changed files with 2 additions and 2 deletions

View File

@ -577,7 +577,7 @@ Each part waits for its sibling or for Fabian's answer. Confinement for N days i
- **Players get:** Jail rows apply to slaves. A jailed slave is a slave again when the sentence ends, and stays on the map. - **Players get:** Jail rows apply to slaves. A jailed slave is a slave again when the sentence ends, and stays on the map.
- **How:** Arresting a slave sets its old faction (RimWorld/Pawn_GuestTracker.cs:479-482); a release would send it off the map (RimWorld/GenGuest.cs:14-19). At the end Laws calls `guest.SetGuestStatus(Faction.OfPlayer, GuestStatus.Slave)` (RimWorld/Pawn_GuestTracker.cs:485-507) instead of releasing, with Castes' `blax.laws.released` hint right before it, since hook L's release prefix doesn't run on this path ("Castes keeps the caste"). That skips `GenGuest.TryEnslavePrisoner` (RimWorld/GenGuest.cs:127-155), so no `EnslavedPrisoner` precept event fires. A slave in a break isn't `IsColonist` (Verse/Pawn.cs:518-527), so guilt doesn't make its arrest certain; the arrester's Social decides, and a refusal is vanilla's berserk. - **How:** Arresting a slave sets its old faction (RimWorld/Pawn_GuestTracker.cs:479-482); a release would send it off the map (RimWorld/GenGuest.cs:14-19). At the end Laws calls `guest.SetGuestStatus(Faction.OfPlayer, GuestStatus.Slave)` (RimWorld/Pawn_GuestTracker.cs:485-507) instead of releasing, with Castes' `blax.laws.released` hint right before it, since hook L's release prefix doesn't run on this path ("Castes keeps the caste"). That skips `GenGuest.TryEnslavePrisoner` (RimWorld/GenGuest.cs:127-155), so no `EnslavedPrisoner` precept event fires. A slave in a break isn't `IsColonist` (Verse/Pawn.cs:518-527), so guilt doesn't make its arrest certain; the arrester's Social decides, and a refusal is vanilla's berserk.
- Indentured slaves: before the arrest Laws reads `SlavesApi.TermDaysLeft`. In Blax Slaves' plan an arrest ends an indentured term like any imprisonment (its open question 1), so the re-enslave at the end would leave an indentured servant a slave for life. While a term runs, Laws doesn't jail: the row falls back to subdue while the slave is in its break, else to warn, as for slaves without this feature, until Slaves offers a hint that keeps the term through a Laws sentence (Slaves' open question 3, planned with its indentured servitude). With that member bound, Laws calls it right before the arrest and jails as for any slave. - Indentured slaves: before the arrest Laws reads `SlavesApi.TermDaysLeft`. In Blax Slaves' plan an arrest ends an indentured term like any imprisonment (its open question 1), so the re-enslave at the end would leave an indentured servant a slave for life. While a term runs, Laws doesn't jail: the row falls back to subdue while the slave is in its break, else to warn, as for slaves without this feature, until Slaves offers a hint that keeps the term through a Laws sentence (Slaves' open question 3, planned with its indentured servitude). With that member bound, Laws calls it from hook K's prefix, right before the capture, and jails as for any slave.
- **Needs:** Ideology; without it the option doesn't exist, since there are no slaves. - **Needs:** Ideology; without it the option doesn't exist, since there are no slaves.
- **Save and removal:** The case remembers that the prisoner was a slave. After removal a jailed slave stays a prisoner of its old faction in your prison, as vanilla's Imprison mode leaves it. - **Save and removal:** The case remembers that the prisoner was a slave. After removal a jailed slave stays a prisoner of its old faction in your prison, as vanilla's Imprison mode leaves it.
- **Overlaps:** Vanilla's Imprison slave mode does the arrest by hand; Laws adds the way back. - **Overlaps:** Vanilla's Imprison slave mode does the arrest by hand; Laws adds the way back.
@ -845,7 +845,7 @@ Status on 2026-12-01, when the five plans were checked against each other: every
- Slaves `docs/roadmap.md`: `SlavesApi` gains a bool `CalmsBreaks` with "Wardens calm breakdowns", which Laws reads to stand its subdue down for slaves. The Cut line on flogging gets a note that Laws' subdue is a capped fistfight to end a break, not a punishment system for slaves. - Slaves `docs/roadmap.md`: `SlavesApi` gains a bool `CalmsBreaks` with "Wardens calm breakdowns", which Laws reads to stand its subdue down for slaves. The Cut line on flogging gets a note that Laws' subdue is a capped fistfight to end a break, not a punishment system for slaves.
- Zones `docs/design.md`: "Works with the other Blax mods" notes that Laws' arrests use prisoner zone beds like any prisoner bed. - Zones `docs/design.md`: "Works with the other Blax mods" notes that Laws' arrests use prisoner zone beds like any prisoner bed.
- Defaults `docs/design.md`: the Blax mods section notes that Laws' subdue downs a pawn through `MakeDowned`, so the colony forbid rule decides about that weapon, and that from the Laws release that brings the give-back the weapon an arrest drops is allowed again at the release. - Defaults `docs/design.md`: the Blax mods section notes that Laws' subdue downs a pawn through `MakeDowned`, so the colony forbid rule decides about that weapon, and that from the Laws release that brings the give-back the weapon an arrest drops is allowed again at the release.
- Slaves `docs/roadmap.md` and `docs/features.md` (its open question 3): an indentured term keeps running through a Laws sentence when Laws hints the arrest (a `SlavesApi` call naming the pawn before the arrest, shipping with Slaves' indentured servitude); until that exists, Laws doesn't jail indentured slaves. Asked together with Laws' open question 1. - Slaves `docs/roadmap.md` and `docs/features.md` (its open question 3): an indentured term keeps running through a Laws sentence when Laws hints the arrest (a `SlavesApi` call naming the pawn from hook K's prefix, right before the capture, shipping with Slaves' indentured servitude); until that exists, Laws doesn't jail indentured slaves. Asked together with Laws' open question 1.
- Castes `docs/features.md`, only if Fabian says yes to confinement (Laws' open question 2): area 5, step 5, "Sentence caste for Blax Laws", ended by `blax.laws.released`. - Castes `docs/features.md`, only if Fabian says yes to confinement (Laws' open question 2): area 5, step 5, "Sentence caste for Blax Laws", ended by `blax.laws.released`.
## To verify against the decompiled code ## To verify against the decompiled code