Pawn Sanitizer Framework

If you liked this item, please rate it up on Steam Workshop page.

Author: emitbreaker

Last revision: 23 Sep, 2025 at 15:07 UTC (1)

File size: 677.22 KB

On Steam Workshop

Description:
To Non-modders

Just ignore this unless your modder asked you to add this into the list.

Summary

A small QoL mod for modders.

This mod provides a flexible framework for sanitizing pawns. Use it to:

  • Remove unwanted thoughts, needs, or hediffs (including needs forcefully added by other mods like Hygiene)
  • Prevent inspiration and mental breaks
  • Wipe memories, stop mental states, and clear inspiration

Apply via:

  • Hediffs (HediffComp_PawnSanitizer)
  • ThingDef/Race (CompPawnSanitizer)
  • ThingDef/Apparel or ThingDef/Equipment (CompPawnSanitizerApparel)
  • ThingDef/Consumables (CompUseEffect_PawnSanitizerConsumables)

Use Cases
  • Mindwiping brain chips
  • Synthetic lobotomies
  • Chaos corruption suppressors
  • Servitor override masks
  • Addiction cleansing drugs
  • Cult deprogramming kits
  • Nerve stabilizers

Core Features: For modders
🧠 Thought, Inspiration, and Mental State Blocking

Dynamically block specific or all ThoughtDef, InspirationDef, and MentalStateDef values at runtime. Includes full compatibility with Biotech moods and modded traits.

💉 Need & Hediff Removal

Strip hygiene, addiction, or custom modded needs/hediffs — perfect for cleansing implants, synthetic brains, or sterilization rituals.

🧥 Modular Triggers: Apparel, Consumables, Hediffs

Effects can be applied via:

Worn gear (CompPawnSanitizerApparel)

Ingested items (CompUseEffect_PawnSanitizerConsumables)

Hediff implants or injections (HediffComp_PawnSanitizer)

🧩 Fully Keyed Localization

All UI and tag strings are translation-ready (PawnSanitizer_XXX keys).

🗂️ Taggable Thought Categorization

Thoughts are grouped by [Mood], [Social], [Needs], [Memory], or [Situational] — or overridden with <sanitizerCategory> XML.

🛠️ Restoration Logic

When a source is removed (e.g., the hediff ends or apparel is dropped), the pawn’s original needs, hediffs, and mood behaviors are fully restored.

Examples
Main Functions



Thought Category Tagging (Optional)

You can tagging thought category for Global Thought Blocker (Experimental) uses.

Recent Update

16/4/2025:
Fixed XML error for sample hediff.

Download
Required items:

Click the title to search on this site.


HarmonySteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.