Added Social Thoughts on SizeMatters
This commit is contained in:
parent
6b550dd831
commit
8d8441cb27
|
@ -4,9 +4,7 @@ using Verse;
|
|||
|
||||
namespace RJWSexperience.Ideology
|
||||
{
|
||||
// This Thoughtworker Checks for Bukkake-Hediff and adds a approving thought if the gender and ideology are fullfilled.
|
||||
// The thought gets removed when the Hediff is removed.
|
||||
public class ThoughtWorker_Precept_GenitalSize_Disapproved : ThoughtWorker_Precept
|
||||
public class ThoughtWorker_Precept_GenitalSize_Approved : ThoughtWorker_Precept
|
||||
{
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||
{
|
||||
|
@ -14,7 +12,7 @@ namespace RJWSexperience.Ideology
|
|||
// Micro(<0.2), Small(>0.2&&<0.4), Normal(>0.4&&<0.6), Big(>0.6&&<0.8), Huge(>0.8)
|
||||
if (p != null && Genital_Helper.get_AllPartsHediffList(p).Count > 0)
|
||||
{
|
||||
float best_size = getGenitalSize(p);
|
||||
float best_size = IdeoUtility.getGenitalSize(p);
|
||||
if (best_size < 0.2f)
|
||||
return ThoughtState.ActiveAtStage(0);
|
||||
else if (best_size < 0.4f)
|
||||
|
@ -29,28 +27,5 @@ namespace RJWSexperience.Ideology
|
|||
// This might can happen if the pawn has no genitalia ... maybe?
|
||||
return ThoughtState.Inactive;
|
||||
}
|
||||
|
||||
private 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 best_seen_size = 0f;
|
||||
foreach (Hediff part in rjw.Genital_Helper.get_AllPartsHediffList(p))
|
||||
{
|
||||
// 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))
|
||||
{
|
||||
best_seen_size = part.Severity > best_seen_size ? part.Severity : best_seen_size;
|
||||
}
|
||||
}
|
||||
|
||||
// For Women, the scale is inversed.
|
||||
if (p.gender == Gender.Female)
|
||||
return 1 - best_seen_size;
|
||||
|
||||
return best_seen_size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology
|
||||
{
|
||||
public class ThoughtWorker_Precept_GenitalSize_Approved_Social : ThoughtWorker_Precept_Social
|
||||
{
|
||||
|
||||
// Important Note: For the Social Worker, we measure otherPawns genitalia
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
|
||||
{
|
||||
// We have 3 stages, which map directly to genitalia severity:
|
||||
// Unfavorable(<0.4), Normal(>0.4&&<0.6), Favorable(>0.6)
|
||||
if (otherPawn != null && Genital_Helper.get_AllPartsHediffList(otherPawn).Count > 0)
|
||||
{
|
||||
float best_size = IdeoUtility.getGenitalSize(otherPawn);
|
||||
if (best_size < 0.4f)
|
||||
return ThoughtState.ActiveAtStage(0);
|
||||
else if (best_size < 0.6f)
|
||||
return ThoughtState.ActiveAtStage(1);
|
||||
else if (best_size > 0.6f)
|
||||
return ThoughtState.ActiveAtStage(2);
|
||||
}
|
||||
// This might can happen if the pawn has no genitalia ... maybe?
|
||||
return ThoughtState.Inactive;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,9 +4,7 @@ using Verse;
|
|||
|
||||
namespace RJWSexperience.Ideology
|
||||
{
|
||||
// This Thoughtworker Checks for Bukkake-Hediff and adds a approving thought if the gender and ideology are fullfilled.
|
||||
// The thought gets removed when the Hediff is removed.
|
||||
public class ThoughtWorker_Precept_GenitalSize_Approved : ThoughtWorker_Precept
|
||||
public class ThoughtWorker_Precept_GenitalSize_Disapproved : ThoughtWorker_Precept
|
||||
{
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||
{
|
||||
|
@ -14,7 +12,7 @@ namespace RJWSexperience.Ideology
|
|||
// Micro(<0.2), Small(>0.2&&<0.4), Normal(>0.4&&<0.6), Big(>0.6&&<0.8), Huge(>0.8)
|
||||
if (p != null && Genital_Helper.get_AllPartsHediffList(p).Count > 0)
|
||||
{
|
||||
float best_size = getGenitalSize(p);
|
||||
float best_size = IdeoUtility.getGenitalSize(p);
|
||||
if (best_size < 0.2f)
|
||||
return ThoughtState.ActiveAtStage(0);
|
||||
else if (best_size < 0.4f)
|
||||
|
@ -30,28 +28,5 @@ namespace RJWSexperience.Ideology
|
|||
return ThoughtState.Inactive;
|
||||
}
|
||||
|
||||
private 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 best_seen_size = 0f;
|
||||
foreach (Hediff part in rjw.Genital_Helper.get_AllPartsHediffList(p))
|
||||
{
|
||||
// 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))
|
||||
{
|
||||
best_seen_size = part.Severity > best_seen_size ? part.Severity : best_seen_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// For Women, the scale is inversed.
|
||||
if (p.gender == Gender.Female)
|
||||
return 1 - best_seen_size;
|
||||
|
||||
return best_seen_size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology
|
||||
{
|
||||
public class ThoughtWorker_Precept_GenitalSize_Disapproved_Social : ThoughtWorker_Precept_Social
|
||||
{
|
||||
// Important Note: For the Social Worker, we measure otherPawns genitalia
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
|
||||
{
|
||||
// We have 3 stages, which map directly to genitalia severity:
|
||||
// Unfavorable(<0.4), Normal(>0.4&&<0.6), Favorable(>0.6)
|
||||
if (otherPawn != null && Genital_Helper.get_AllPartsHediffList(otherPawn).Count > 0)
|
||||
{
|
||||
float best_size = IdeoUtility.getGenitalSize(otherPawn);
|
||||
if (best_size < 0.4f)
|
||||
return ThoughtState.ActiveAtStage(0);
|
||||
else if (best_size < 0.6f)
|
||||
return ThoughtState.ActiveAtStage(1);
|
||||
else if (best_size > 0.6f)
|
||||
return ThoughtState.ActiveAtStage(2);
|
||||
}
|
||||
// This might can happen if the pawn has no genitalia ... maybe?
|
||||
return ThoughtState.Inactive;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Verse;
|
||||
|
@ -45,5 +46,29 @@ namespace RJWSexperience.Ideology
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
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 best_seen_size = 0f;
|
||||
foreach (Hediff part in rjw.Genital_Helper.get_AllPartsHediffList(p))
|
||||
{
|
||||
// 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))
|
||||
{
|
||||
best_seen_size = part.Severity > best_seen_size ? part.Severity : best_seen_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// For Women, the scale is inversed.
|
||||
if (p.gender == Gender.Female)
|
||||
return 1 - best_seen_size;
|
||||
|
||||
return best_seen_size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,11 +22,9 @@
|
|||
<li Class="PreceptComp_SituationalThought">
|
||||
<thought>GenitalSize_Approved</thought>
|
||||
</li>
|
||||
<!-- TBD
|
||||
<li Class="PreceptComp_SituationalThought">
|
||||
<thought>GenitalSize_Approved_Social</thought>
|
||||
</li>
|
||||
-->
|
||||
</comps>
|
||||
</PreceptDef>
|
||||
|
||||
|
@ -54,11 +52,9 @@
|
|||
<li Class="PreceptComp_SituationalThought">
|
||||
<thought>GenitalSize_Disapproved</thought>
|
||||
</li>
|
||||
<!-- TBD
|
||||
<li Class="PreceptComp_SituationalThought">
|
||||
<thought>GenitalSize_Disapproved_Social</thought>
|
||||
</li>
|
||||
-->
|
||||
</comps>
|
||||
</PreceptDef>
|
||||
|
||||
|
@ -131,29 +127,46 @@
|
|||
</ThoughtDef>
|
||||
|
||||
<!-- Social-Thoughts (Opinion)-->
|
||||
<!-- TBD
|
||||
<ThoughtDef Name="CoveredInCum_Disapproved_Social">
|
||||
<defName>CoveredInCum_Disapproved_Social</defName>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<workerClass>RJWSexperience.Ideology.ThoughtWorker_Precept_Bukkake_SocialDisapproved</workerClass>
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>GenitalSize_Approved_Social</defName>
|
||||
<workerClass>RJWSexperience.Ideology.ThoughtWorker_Precept_GenitalSize_Approved_Social</workerClass>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>They look slimy ... </label>
|
||||
<label>Unwanted Genitals</label>
|
||||
<baseOpinionOffset>-5</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
<ThoughtDef Name="CoveredInCum_Approved_Social">
|
||||
<defName>CoveredInCum_Approved_Social</defName>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<workerClass>RJWSexperience.Ideology.ThoughtWorker_Precept_Bukkake_SocialApproved</workerClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>This person must be very popular! </label>
|
||||
<label>Normal Genitals</label>
|
||||
<baseOpinionOffset>0</baseOpinionOffset>
|
||||
</li>
|
||||
<li>
|
||||
<label>Favorable Genitals</label>
|
||||
<baseOpinionOffset>+5</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
-->
|
||||
|
||||
|
||||
<ThoughtDef>
|
||||
<defName>GenitalSize_Disapproved_Social</defName>
|
||||
<workerClass>RJWSexperience.Ideology.ThoughtWorker_Precept_GenitalSize_Disapproved_Social</workerClass>
|
||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||
<stages>
|
||||
<li>
|
||||
<label>Unwanted Genitals</label>
|
||||
<baseOpinionOffset>-5</baseOpinionOffset>
|
||||
</li>
|
||||
<li>
|
||||
<label>Normal Genitals</label>
|
||||
<baseOpinionOffset>0</baseOpinionOffset>
|
||||
</li>
|
||||
<li>
|
||||
<label>Favorable Genitals</label>
|
||||
<baseOpinionOffset>+5</baseOpinionOffset>
|
||||
</li>
|
||||
</stages>
|
||||
</ThoughtDef>
|
||||
|
||||
</Defs>
|
Loading…
Reference in New Issue