Implemented Sleipnir's fix for futa genital size !4

This commit is contained in:
amevarashi 2024-06-11 22:09:25 +05:00
parent 1bbdc47180
commit 861c753e22

View file

@ -67,21 +67,29 @@ namespace RJWSexperience.Ideology
return 0f; return 0f;
// Iff the pawn has multiple genitalia, the "best" is picked (the biggest penis or tightest vagina) // Iff the pawn has multiple genitalia, the "best" is picked (the biggest penis or tightest vagina)
float bestSeenSize = 0f; float bestSize = 0f;
foreach (Hediff part in Genital_Helper.get_AllPartsHediffList(p)) foreach (Hediff part in Genital_Helper.get_AllPartsHediffList(p))
{ {
float size;
// Only check for Vaginas and Penises, not for Anus or for things not categorized as primary sexual parts // Only check for Vaginas and Penises, not for Anus or for things not categorized as primary sexual parts
if (Genital_Helper.is_penis(part) || Genital_Helper.is_vagina(part)) if (Genital_Helper.is_penis(part))
{ {
bestSeenSize = part.Severity > bestSeenSize ? part.Severity : bestSeenSize; size = part.Severity;
} }
else if (Genital_Helper.is_vagina(part))
{
// For vagina, the scale is inverted.
size = 1 - part.Severity;
}
else
{
continue;
}
bestSize = size > bestSize ? size : bestSize;
} }
// For Women, the scale is inverted. return bestSize;
if (p.gender == Gender.Female)
return 1 - bestSeenSize;
return bestSeenSize;
} }
public static bool IsVisiblyPregnant(Pawn pawn) public static bool IsVisiblyPregnant(Pawn pawn)