44 lines
4.1 KiB
Markdown
44 lines
4.1 KiB
Markdown
# Blax Slaves
|
|
|
|
RimWorld mod (1.7) that makes slavery an everyday part of the rim. First mod under the Blax Gaming label. Needs Harmony; slaves need Ideology.
|
|
|
|
## Features
|
|
|
|
- **Slavers are common.** The three vanilla slavers (outlander "slaver" caravan, tribal "slaver" caravan, orbital "slave ship") get commonality 2 instead of 1, and big colonies keep seeing them at half weight instead of zero. They carry more: outlander 5~9, tribal 4~7, slave ship 6~10 (vanilla 2~4). Every other caravan and orbital trader has a ~50% chance of 1~2 slaves, settlements stock 1~4. `Patches/BlaxSlaves_Traders.xml`
|
|
- **Branding.** "Brand" surgery for colony slaves (adults, Medicine 2, never fails). The brand remembers its owner (shown as "slave brand (Owner)"), slows suppression loss by 15%, gives the slave a -3 "branded" mood and a fresh torso burn. "Rebrand" burns your mark over another owner's. `Defs/BlaxSlaves_Brand.xml`, `Source/BlaxSlaves/Brand.cs`
|
|
- **Trader slaves come branded.** 35% of adult slaves in trader stock carry the trader faction's brand (orbital ships: a random faction).
|
|
- **Runaways come back.** A slave with your brand who escapes (slave rebellion, or a caravan whose last free member dies) is tracked. If the faction they end up with is hostile, they keep them. Otherwise, after 3~10 days (80% chance) a non-hostile faction returns them as your slave, walking in (tribal/medieval) or by drop pod. `Source/BlaxSlaves/Runaways.cs`
|
|
- **Harming slaves doesn't upset colonists.** Executing, harvesting, selling (trade or gift pod), banishing, butchering, blinding, gibbeting a slave gives free colonists no negative thoughts. Deaths only count when the colony caused them: a slave killed by raiders, animals or disease is mourned normally. Branded pawns count too unless they became free colonists. Pacifists (Kind, or incapable of violence) still mind, family still grieves, and the banish dialog shows the reduced cost. `Source/BlaxSlaves/SlaveHarm.cs`
|
|
- Mod settings for all the numbers and toggles.
|
|
|
|
Compat: War Crimes Expanded 2 torture and Harvest Organs Post Mortem autopsies count as slave harm when their mods are active. Hospitality visitor groups never take a runaway who is due to be returned. No Sympathy For Prisoners already removes slavery and execution precept thoughts for everyone, pacifists included. Load after [SYR] More Slaves, or every trader gets its extra 3~5 slaves on top of ours.
|
|
|
|
Not covered: eating slave meat, slave-leather apparel, slaves lost when a map closes or kidnapped by raiders (vanilla ransom handles those).
|
|
|
|
## Development
|
|
|
|
The repo is the mod folder. Link it into the game with a directory junction, run from the repo root (adjust the RimWorld path):
|
|
|
|
```powershell
|
|
New-Item -ItemType Junction -Path "E:\SteamLibrary\steamapps\common\RimWorld\Mods\BlaxSlaves" -Target (Get-Location).Path
|
|
```
|
|
|
|
Build (needs the .NET 10 SDK; output goes to `1.7/Assemblies/BlaxSlaves.dll`):
|
|
|
|
```powershell
|
|
dotnet build Source\BlaxSlaves\BlaxSlaves.csproj -c Release
|
|
```
|
|
|
|
`RimWorldDir` and `HarmonyDir` in the csproj point at the Steam install and the Harmony mod; override them with `-p:RimWorldDir=...` elsewhere.
|
|
|
|
RimWorld 1.7 no longer runs on Unity/Mono. It runs on .NET 10 (CoreCLR) with Ludeon's own engine ("Waylith"):
|
|
|
|
- `Assembly-CSharp.dll` and `UnityStubs.dll` (Rect, Color...) sit in the install root, and target `net10.0`.
|
|
- Harmony for 1.7 is the Harmony mod's `1.7/Assemblies/0Harmony.dll` (3.0-rc.7, Workshop 2009463077). Reference it, don't ship it. Parameterless `PatchAll()` is obsolete in Harmony 3.
|
|
- In game, the Harmony mod swaps in a Waylith method-body backend (`HarmonyMod.RuntimeIL.dll`). Check `Player.log` for `[Blax Slaves] N patches applied` and Harmony's `runtime-body provider` line.
|
|
- Patches are applied from a `[StaticConstructorOnStartup]` class, one class at a time, so one broken target can't disable the rest.
|
|
|
|
Quick test map: `RimWorld.exe -quicktest`. Dev mode: spawn a slaver caravan, enslave a prisoner, brand them, then trigger a slave rebellion from the debug actions.
|
|
|
|
A decompiled copy of the 1.7 game code for reference lives outside the repo in `..\rimworld-src-1.7` (never commit or publish it).
|