rimworld-blax-laws/README.md

84 lines
7.8 KiB
Markdown
Raw Normal View History

# Blax Laws
[![RimWorld 1.7](https://img.shields.io/badge/RimWorld-1.7-19C63C)](https://rimworldgame.com)
[![Needs Harmony](https://img.shields.io/badge/needs-Harmony-050805)](https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077)
[![Any DLC combination](https://img.shields.io/badge/DLCs-any_combination-5a6b5d)](#dlc-support)
[![Status: design](https://img.shields.io/badge/status-design-CDCDCD)](docs/design.md)
RimWorld mod (1.7) by Blax Gaming. Lawbook, crimes and punishments. Write your colony's laws, and colonists who break them get stopped, jailed and, later, tried in court. Add "Drug binge, planning, subdue" and when a colonist starts a wake-up binge, a warden goes for it at once and beats it down; if it reaches a drug first, that dose counts as "did it" and the did-it law applies. Add "Drug binge, did it, jail 5 days" and the one who already took some sits out five days in your prison and walks back to work. Needs Harmony. Works with any DLC combination, core only included.
Status: design. Nothing is built yet; below is what 1.0 will do. The full design is in `docs/design.md`.
## Features
### The lawbook
- 📖 **An empty lawbook.** A "Laws" tab in the bottom bar. Add a law as Action (with an option such as "wake-up"), Stage, Severity, Punishment and Days, each a dropdown that only offers what fits. Nothing is watched or punished until the first row exists. `Source/BlaxLaws/MainTabWindow_Laws.cs`
- 📝 **Starter lawbook.** One click adds seven suggested laws: subdue drug binges, fire-starting sprees and corpse obsession before they start, jail for binges and fires already done, a warning for fights and insults. `Source/BlaxLaws/Lawbook.cs`
- 🎯 **One law per act.** Each action, option and stage appears once in the book, and when two laws fit an act the more specific one wins: "wake-up" over "any drug", "human meat" over "any meat".
- 🎚️ **Stages that mean something.** "Planning" is the moment a mental break starts and nothing is done yet; "Did it" is the act. A crime only offers the stages the game can really tell apart.
- 📋 **Case log.** Who, what, when, which punishment and how it ended, newest first, with a jump to the pawn and "Arrest now" for cases that wait.
### Crimes
- 💊 **Drug binge.** Any drug, hard or social drugs, or one chemical such as wake-up. Planning when the binge starts, did it with every dose. `Source/BlaxLaws/Detection/BingeHooks.cs`
- 🔥 **Fire starting.** Planning when a pyromaniac's spree starts, did it with every fire set.
- ⚰️ **Corpse obsession.** Planning when the obsession starts, did it when the corpse is on display; the case notes "on a table" and whether the corpse was dug up from a grave, which it usually is.
- 👊 **Started a fight.** The pawn who reacts and swings first, usually the insulted one.
- 🗯️ **Insults.** Every insult by the one who insults, slights too if you want. Planning for insulting sprees.
- 🍖 **Ate meat.** Any meat (meals included), raw meat and corpses, or human meat.
- 🧮 **No flood.** Meat, fights and insults outside a break open at most one case per colonist and law a day; more acts only raise its count.
### Punishments
- ✋ **Warn.** A record and a message.
- ⚖️ **Guilty for N days.** Vanilla guilt: the arrest of a free colonist is always accepted, executing it costs the colony only the small "justified execution" mood hit plus its family's grief, and banishing it costs no colony-wide mood.
- 🛑 **Subdue.** A warden beats the offender down with fists to stop the break: bruises on torso and limbs, never the head or a bionic part, no lost parts, no scars, and the beating doesn't hand out the break's catharsis. No warden is pulled off a rescue, a patient or a fire, and nobody is sent while raiders are on the map. `Source/BlaxLaws/JobDriver_Subdue.cs`
- 🔒 **Jail for N days.** Arrested into a prisoner bed, kept on "Maintain only" so no prison mod recruits or enslaves your colonist, released by a warden when the time is served, back to work with its priorities intact. `Source/BlaxLaws/Enforcement.cs`
- 🔗 **Subdue, then jail.** Beaten down and carried straight to a cell before a doctor takes it to bed.
### Save and settings
- 💾 **Save-safe.** One piece of game data holds the lawbook and the cases. Unsubscribing leaves a save that loads with two errors in the log; jailed colonists stay prisoners you can release by hand. `Source/BlaxLaws/GameComponent_BlaxLaws.cs`
- ⚙️ **Mod settings.** "Enforce laws", "Show Laws tab", messages and letters, who enforces, catharsis after subdue, player orders exempt, days between cases for acts outside a break, how long closed cases stay, "Reset to defaults".
## Planned
Later releases, in order (details in `docs/design.md`):
- 🛏️ **1.1 Sentences done right.** Release gives back the bed, grave, throne, deathrest casket, ideoligion role and mech work modes. Pardon and early release, reprimands, jail for slaves, banishment and execution after your confirmation, and "Trial" through Ideology's vanilla trial.
- 🔪 **1.2 Violent crimes.** Tantrums and vandalism, assault, harming prisoners or slaves, murderous rage, manslaughter and murder.
- 🏛️ **1.3 Court sessions.** Trials without any DLC: a judge, a prosecutor and spectators at a place you pick, a verdict that weighs evidence against Social skill, the sentence from your lawbook. If you want, the court sits on its own at a set hour. A button removes the mod from a save.
- 🗳️ **1.4 Elected judge.** The colony votes for a judge for 60 days at a time, with by-elections and recalls.
- 🗣️ **1.5 Attorneys.** The accused asks a colonist to defend it or speaks for itself; both sides argue with Social.
- 📅 **1.6 Multi-day trials and courtrooms.** Up to three court days for grave crimes, custody between them, and courtrooms that make a verdict easier to accept.
- 🙋 **1.7 Law votes.** Colonists propose and repeal laws and vote by traits, beliefs, opinion and mood, and you can back or veto the result.
- 🚪 **1.8 More crimes.** Jailbreaks, desertion, slaughtering colony animals, food binges, drugs against the drug policy, prison breaks, slave rebellions.
## DLC support
Blax Laws works with any combination of DLCs, core only included, and lists none as a dependency. Every 1.0 crime and punishment runs on the core game.
- **Ideology** adds slaves, who can be warned, marked guilty and subdued. Role holders aren't jailed automatically in 1.0, because an arrest takes their role.
- **Biotech** adds children, who are never beaten, and mechanitors, who aren't jailed automatically in 1.0, because an arrest shuts their mechs down.
- **Royalty**, **Anomaly** and **Odyssey**: 1.0 uses none of their content.
- **A save made with a DLC** loads without it.
## Compatibility
- ✔️ Prison Labor, Prisoner Realism, Custom Prisoner Interactions and Hospitality: a jailed colonist is a vanilla prisoner, so their features apply; Laws only keeps its own prisoners on "Maintain only" and lets them go when the time is served.
- ✔️ Prisoner Sentencing and Prison Expanded: if one of them releases a colonist Laws jailed, Laws closes its sentence instead of fighting it.
- ✔️ RimCourt: it judges civil disputes as the lord, Laws tries those who break your laws; both run side by side.
- ♻️ Replaces Rimworld Law and Order, which has no 1.7 build, needs Ideology and adds its own crime events.
- ❌ Multiplayer: not supported.
Load order: Harmony, Blax Castes, Blax Zones, Blax Slaves, Blax Laws. No Blax mod needs another.
---
## Made by Blax
[![Blax Software Open Source Initiative](docs/art/blax-oss-banner.svg)](https://www.blax.at)
🛠️ **Blax Gaming** is a project of **[Blax Software](https://www.blax.at)**, an Austrian software practice. We write Austrian-quality code in many fields: web platforms, mobile apps, backends, infrastructure, and the mods we play in our own colonies. Need something built? 👉 [www.blax.at](https://www.blax.at)