Bionic Jaws Are Not Disfigurements
What is this mod?! What have you done?!
This mod is a fix for the bionic jaw disfigurement issue in Rimworld. If you have a mod that allows jaw replacements, like bionic jaws or whatever, you may have noticed something odd in your pawns' relationships. As soon as a pawn gets a new shiny bionic jaw, all other pawns start thinking Mr Bitey Face is disfigured. This is actually a game bug that pops up due to the following:
1.) Body parts can be marked up as beauty-related. If a pawn has a beauty-related body part set to destroyed, other pawns count that pawn as disfigured.
2.) When getting a body part replacement, the replacement specifically acts as a hediff on the specific body part being replaced. The child body parts are marked as destroyed but hidden from the health tab. The hidden destroyed body parts can still be expanded in dev mode.
3.) Tongues are marked up as beauty-related and are a child body part of the jaw body part.
As such, if a jaw is replaced with bionics the tongue is removed and the pawn is considered disfigured.
This mod adds a fix to have missing beauty-related body parts not count as disfigurement if they are simply missing due to a parent body part having been replaced.
In terms of compatibility, the mod adds a transpiler to replace a check within RelationsUtility.IsDisfigured. Rather than looking to see if the part is missing, it checks to see if the part is missing and if the part doesn't have any replaced parent parts. What does this mean?
1.) This mod should be compatible with any mod as long as they don't modify that bit of the RelationsUtility.IsDisfigured function. What this really means is that it should be compatible with any mod that doesn't do this same fix; pretty sure no other such mod exists.
2.) This mod can be added mid-save and removed mid-save.
3.) The only replacement available for the jaw in vanilla are dentures, and those hit the noted disfigurement bug. This mod stops those from counting as disfiguring.
4.) The jaw/tongue piece is the only body part disfigurement issue in vanilla. If a mod adds something new that falls under the same bug (like if elbows were made to be beauty-related resulting in pawns being disfigured if they got bionic arms), this mod will address that body part chain as well.
Shameless plug
I do have a mod that adds jaw replacements: [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2684282246]Corpse Children: Ghoulish Body Enhancement[/url]. If you're using that mod, I recommending grabbing this current mod as well.
Other mods with fixes for this issue
Commenters have called out other mods with fixes for this issue; I haven't checked them out but adding them here directly for alternatives.
* EPOE - Forked: I believe the fix used by this mod is to remove the beauty-related tag from the tongue. As such there's no conflict between the mods, but I'd recommend turning that fix off in EPOE-Forked's mod settings and using this mod's fix.
* Medical system expanded: I believe the fix used by that this mod is to not remove the tongue on jaw replacement. If you use Medical system expanded then you shouldn't need this mod.