Original Post — Direct link

I'm working with a team to make Pawnmorpher, a mutation mod, and we made an interesting discovery. While trying to make sapient/talking animals able to have thoughts, we were consistently perplexed as to why one of the thoughts...er, "naked"...wasn't showing up - - and sometimes it was.

As it happens, rimworld thinks all animals are wearing pants. Invisible ones. So male animals don't get the "naked" thought, because they have "pants" somewhere. Fur ones I guess, idk.

But what about when it was showing? Those were females, who got the thought because they weren't wearing shirts.

Oh god. Something tells me we have a bit of work to do.

External link →
almost 5 years ago - /u/TynanSylvester - Direct link

I just looked this up for amusement's sake. Turns out it's actually because of a bugfix.

We set it up so people who have no legs won't get 'naked' thoughts from not wearing pants. It checks if any of the pawn's not-missing body parts are in the BodyPartGroupDef called Legs. If not, it thinks the pawn has no legs, so it sets 'hasPants' to true since the check isn't needed.

Animal bodies don't have BodyPartGroupDefs configured because they're only used for apparel. Thus the check for not-missing body parts in the Legs BodyPartGroup always returns false.

So the reason animals always think they have pants is because they always think they have no legs.

almost 5 years ago - /u/TynanSylvester - Direct link

Originally posted by RuneLFox

Hey Tynan! Didn't expect you to grace my thread! :D

WOW, though. Thanks for the informative reply. That's a really funny edge case, I'll pass it on to the team!

I don't know if it's part of the same thing, should it be the case that females would get the thought because their torso is uncovered, which doesn't matter for males?

Yes, it should be the case.