mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Implemented Sleipnir's fix for futa genital size !4
This commit is contained in:
parent
1bbdc47180
commit
861c753e22
1 changed files with 16 additions and 8 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue