RimWorld

RimWorld

70 ratings
Bionic Jaws Are Not Disfigurements
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4
File Size
Posted
Updated
421.678 KB
19 Aug, 2022 @ 7:57am
13 Nov, 2022 @ 2:01pm
2 Change Notes ( view )

Subscribe to download
Bionic Jaws Are Not Disfigurements

Description
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: Corpse Children: Ghoulish Body Enhancement. 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.
28 Comments
Xylene 26 May @ 12:42pm 
does it work on 1.5?
>dysaster 19 Apr @ 7:09am 
1.5 pretty please
Dr. Nolegs 11 Apr @ 8:35pm 
Does 1.5 fix this?
sopello_przecudny 11 Feb @ 8:31am 
had a similar problem with venom gland from isectoid expanded mod, this one fixed it
Charshine 28 Mar, 2023 @ 11:53am 
@net agreed. it made me very sad to see my pawns relationship deteriorate bc one had an accident
net 4 Nov, 2022 @ 2:31am 
@Bleeding Eyes Mcgee The real fucked up part is that colonists have a lower opinion of other disfigured colonists, instead of a mood debuff whenever they see one cause it's kinda gross. They actively dislike disfigured people for something that was likely out of their control..

Really, there should be a mod that removes this "disfigured" bullshit entirely.
Bleeding Eyes Mcgee 31 Oct, 2022 @ 11:25am 
The big question here is, why are tongues marked as beauty-related in the first place? Who's going around staring at other people's tongues (or lack thereof)?
Danny 26 Oct, 2022 @ 11:41am 
@Scorpio the easy answer is test it yourself. and yes. it does.
Scorpio 25 Oct, 2022 @ 10:16am 
does this still work in 1.4?
SkunkPlaysGames 24 Aug, 2022 @ 6:42pm 
Ah I see. Very cool. I suppose it is an interesting on-off case where there is an existing bionic, for example there aren't bionic feet but if someone one made a mod that included bionic feet, say with a venom spike or some nonsense, then you might still wish to have that included with a bionic leg. I'm not sure I like RimWorld's hidden hediff system at all for this reason. So adding a bionic tongue has its own logic as well in addition to your very sound logic behind the mod. Just one of those programming quirks I suppose. Anyway, thanks for filling me in.