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:
[list]
[*] 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
[/list]
Apply via:
[list]
[*] Hediffs (HediffComp_PawnSanitizer)
[*] ThingDef/Race (CompPawnSanitizer)
[*] ThingDef/Apparel or ThingDef/Equipment (CompPawnSanitizerApparel)
[*] ThingDef/Consumables (CompUseEffect_PawnSanitizerConsumables)
[/list]
Use Cases
[list]
[*] Mindwiping brain chips
[*] Synthetic lobotomies
[*] Chaos corruption suppressors
[*] Servitor override masks
[*] Addiction cleansing drugs
[*] Cult deprogramming kits
[*] Nerve stabilizers
[/list]
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
[img]https://i.imgur.com/AwDGXk6.png[/img]
[img]https://i.imgur.com/Q4s6Efa.png[/img]
[img]https://i.imgur.com/PSZ7g9s.png[/img]
Thought Category Tagging (Optional)
You can tagging thought category for Global Thought Blocker (Experimental) uses.
[img]https://i.imgur.com/LFLSLT2.png[/img]
Recent Update
16/4/2025:
Fixed XML error for sample hediff.