Pawn Sanitizer Framework
Just ignore this unless your modder asked you to add this into the list.
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)
- Mindwiping brain chips
- Synthetic lobotomies
- Chaos corruption suppressors
- Servitor override masks
- Addiction cleansing drugs
- Cult deprogramming kits
- Nerve stabilizers
Dynamically block specific or all ThoughtDef, InspirationDef, and MentalStateDef values at runtime. Includes full compatibility with Biotech moods and modded traits.
Strip hygiene, addiction, or custom modded needs/hediffs — perfect for cleansing implants, synthetic brains, or sterilization rituals.
Effects can be applied via:
Worn gear (CompPawnSanitizerApparel)
Ingested items (CompUseEffect_PawnSanitizerConsumables)
Hediff implants or injections (HediffComp_PawnSanitizer)
All UI and tag strings are translation-ready (PawnSanitizer_XXX keys).
Thoughts are grouped by [Mood], [Social], [Needs], [Memory], or [Situational] — or overridden with <sanitizerCategory> XML.
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.



You can tagging thought category for Global Thought Blocker (Experimental) uses.
16/4/2025:
Fixed XML error for sample hediff.