Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail
- Laws tab with the lawbook and the case log; the book starts empty and
the mod watches nothing until a law exists.
- Act catalogue built from the game's defs (breaks, food, drugs, usables,
interactions, recorded acts, records, bills) plus special acts, with
groups, break links and a starter lawbook.
- Enforcement: warn, guilty, subdue, jail for N days and subdue then jail,
one case per incident, danger waits, role holders and mechanitors held
for Arrest now.
- Headless test suite green in every DLC combination, core only and with
the compat mods.
2026-12-02 20:07:17 +00:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
|
|
|
|
|
<!-- RimWorld 1.7 runs on .NET 10 (CoreCLR). Build: dotnet build -c Release -->
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
|
|
|
<AssemblyName>BlaxLaws</AssemblyName>
|
|
|
|
|
<RootNamespace>BlaxLaws</RootNamespace>
|
|
|
|
|
<LangVersion>latest</LangVersion>
|
|
|
|
|
<Nullable>disable</Nullable>
|
|
|
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
|
|
|
<OutputPath>..\..\1.7\Assemblies\</OutputPath>
|
|
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
|
|
|
<GenerateDependencyFile>false</GenerateDependencyFile>
|
|
|
|
|
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
|
|
|
|
<DebugType>portable</DebugType>
|
|
|
|
|
<Deterministic>true</Deterministic>
|
|
|
|
|
<!-- The SDK appends the git commit to the informational version, so every commit would change the
|
|
|
|
|
next build and the committed DLL could never match HEAD. Same source, same bytes. -->
|
|
|
|
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
|
|
|
|
<!-- Keep local paths out of the shipped DLL/PDB. -->
|
|
|
|
|
<PathMap>$(MSBuildProjectDirectory)=Source/BlaxLaws</PathMap>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<!-- Override on the command line if the game or the Harmony mod live elsewhere. -->
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<RimWorldDir Condition="'$(RimWorldDir)' == ''">E:\SteamLibrary\steamapps\common\RimWorld</RimWorldDir>
|
|
|
|
|
<HarmonyDir Condition="'$(HarmonyDir)' == ''">E:\SteamLibrary\steamapps\workshop\content\294100\2009463077\1.7\Assemblies</HarmonyDir>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
Blax Laws 1.0.0: tests for every shipped claim, escape and custody fixes
- Tests for the end-to-end subdue and jail, halved pain, the role hold,
every way a sentence ends, pruning, the nobody-to-enforce letter and
performance; each fails when its feature is broken.
- A jailed colonist that escapes closes as Escaped, also when the world
deletes it before the sentence check or a save falls in between. One
sold, given away, kidnapped or lost with a map closes with its own
message instead of "escaped".
- The release fallback also frees a prisoner on a caravan.
- An arrest waits while the offender carries someone, and ends an
offender job that holds reservations, so no reservation errors.
- Release text says a colonist, not a warden: Basic work also releases
prisoners.
- Test harness: test order, fixture hardening, roof cleanup and logging.
2026-12-03 14:46:28 +00:00
|
|
|
<!-- The in-game test mod (Tests/BlaxLawsTests) builds cases through the store's internal methods. -->
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<InternalsVisibleTo Include="BlaxLawsTests" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail
- Laws tab with the lawbook and the case log; the book starts empty and
the mod watches nothing until a law exists.
- Act catalogue built from the game's defs (breaks, food, drugs, usables,
interactions, recorded acts, records, bills) plus special acts, with
groups, break links and a starter lawbook.
- Enforcement: warn, guilty, subdue, jail for N days and subdue then jail,
one case per incident, danger waits, role holders and mechanitors held
for Arrest now.
- Headless test suite green in every DLC combination, core only and with
the compat mods.
2026-12-02 20:07:17 +00:00
|
|
|
<ItemGroup>
|
|
|
|
|
<Reference Include="Assembly-CSharp">
|
|
|
|
|
<HintPath>$(RimWorldDir)\Assembly-CSharp.dll</HintPath>
|
|
|
|
|
<Private>false</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
<Reference Include="UnityStubs">
|
|
|
|
|
<HintPath>$(RimWorldDir)\UnityStubs.dll</HintPath>
|
|
|
|
|
<Private>false</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
<Reference Include="0Harmony">
|
|
|
|
|
<HintPath>$(HarmonyDir)\0Harmony.dll</HintPath>
|
|
|
|
|
<Private>false</Private>
|
|
|
|
|
</Reference>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
</Project>
|