Skip to content
Snippets Groups Projects
Commit b5f37623 authored by amevarashi's avatar amevarashi
Browse files

GetGenitalSize returns penis size for futa

parent 40af29a1
No related branches found
No related tags found
No related merge requests found
......@@ -61,22 +61,31 @@ namespace RJWSexperience.Ideology
}
}
///<summary>
/// If the pawn has multiple genitalia, the "best" is picked (the biggest penis or tightest vagina).
/// For futanari return the biggest penis size
///</summary>
public static float GetGenitalSize(Pawn p)
{
if (p == null)
return 0f;
// Iff the pawn has multiple genitalia, the "best" is picked (the biggest penis or tightest vagina)
float bestSize = 0f;
bool foundPenis = false;
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
if (Genital_Helper.is_penis(part))
{
if (!foundPenis)
{
foundPenis = true;
bestSize = 0f;
}
size = part.Severity;
}
else if (Genital_Helper.is_vagina(part))
else if (!foundPenis && Genital_Helper.is_vagina(part))
{
// For vagina, the scale is inverted.
size = 1 - part.Severity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment