Consolidate the suite into one installable Institution mod with toggles
This repo is now the single player-facing mod. It bundles the whole engine and all three feature layers into one folder -- Core, Contraband, Justice, and Gangs DLLs plus Contraband's Defs -- with one About.xml and a settings shim that turns each layer on or off from a checkbox (all on by default). A player installs one mod (this) and Harmony; no separate Core dependency. - Source/Institution: the only new code, a settings shim (InstitutionMod + InstitutionModSettings) that writes the player's choices into Core's shared InstitutionSettings. It owns no gameplay. - Tools/package.sh: rebuilds the sibling DLLs clean and vendors them + Contraband's content in here, so the repo stays a complete drop-in. - Assemblies/, Defs/, Textures/, Languages/: the vendored, assembled mod. Still fully modular and splittable: the feature code stays in its own repos and DLLs (their About.xml files remain), so breaking this back into separate mods is just shipping them individually -- no code change.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<JobDef>
|
||||
<defName>Contraband_SearchPawn</defName>
|
||||
<driverClass>Contraband.JobDriver_SearchPawn</driverClass>
|
||||
<reportString>searching TargetA.</reportString>
|
||||
</JobDef>
|
||||
|
||||
<!--
|
||||
A NEW WorkGiver class, not a patch on a vanilla one. That is what keeps this mod out of a
|
||||
fight with the rest of the prison ecosystem:
|
||||
|
||||
- Custom Prisoner Interactions patches the NAMED vanilla warden givers (_Chat, _Convert,
|
||||
_Enslave, _ReleasePrisoner). It cannot see this one.
|
||||
- Prison Commons postfixes WorkGiver_Warden.ShouldSkip on the BASE class, which this
|
||||
inherits and does not override, so searches respect prison-commons areas for free.
|
||||
|
||||
Priority sits below feeding: a starving prisoner matters more than a hidden shiv.
|
||||
-->
|
||||
<WorkGiverDef>
|
||||
<defName>Contraband_WardenSearch</defName>
|
||||
<label>search prisoners for contraband</label>
|
||||
<giverClass>Contraband.WorkGiver_Warden_Search</giverClass>
|
||||
<workType>Warden</workType>
|
||||
<verb>search</verb>
|
||||
<gerund>searching</gerund>
|
||||
<priorityInType>40</priorityInType>
|
||||
<requiredCapacities>
|
||||
<li>Manipulation</li>
|
||||
<li>Sight</li>
|
||||
</requiredCapacities>
|
||||
</WorkGiverDef>
|
||||
|
||||
</Defs>
|
||||
Reference in New Issue
Block a user