mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Added Social Thoughts on SizeMatters
This commit is contained in:
parent
6b550dd831
commit
8d8441cb27
6 changed files with 119 additions and 74 deletions
|
@ -4,9 +4,7 @@ using Verse;
|
||||||
|
|
||||||
namespace RJWSexperience.Ideology
|
namespace RJWSexperience.Ideology
|
||||||
{
|
{
|
||||||
// This Thoughtworker Checks for Bukkake-Hediff and adds a approving thought if the gender and ideology are fullfilled.
|
public class ThoughtWorker_Precept_GenitalSize_Approved : ThoughtWorker_Precept
|
||||||
// The thought gets removed when the Hediff is removed.
|
|
||||||
public class ThoughtWorker_Precept_GenitalSize_Disapproved : ThoughtWorker_Precept
|
|
||||||
{
|
{
|
||||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
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)
|
// 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)
|
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)
|
if (best_size < 0.2f)
|
||||||
return ThoughtState.ActiveAtStage(0);
|
return ThoughtState.ActiveAtStage(0);
|
||||||
else if (best_size < 0.4f)
|
else if (best_size < 0.4f)
|
||||||
|
@ -29,28 +27,5 @@ namespace RJWSexperience.Ideology
|
||||||
// This might can happen if the pawn has no genitalia ... maybe?
|
// This might can happen if the pawn has no genitalia ... maybe?
|
||||||
return ThoughtState.Inactive;
|
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
|
namespace RJWSexperience.Ideology
|
||||||
{
|
{
|
||||||
// This Thoughtworker Checks for Bukkake-Hediff and adds a approving thought if the gender and ideology are fullfilled.
|
public class ThoughtWorker_Precept_GenitalSize_Disapproved : ThoughtWorker_Precept
|
||||||
// The thought gets removed when the Hediff is removed.
|
|
||||||
public class ThoughtWorker_Precept_GenitalSize_Approved : ThoughtWorker_Precept
|
|
||||||
{
|
{
|
||||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
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)
|
// 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)
|
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)
|
if (best_size < 0.2f)
|
||||||
return ThoughtState.ActiveAtStage(0);
|
return ThoughtState.ActiveAtStage(0);
|
||||||
else if (best_size < 0.4f)
|
else if (best_size < 0.4f)
|
||||||
|
@ -30,28 +28,5 @@ namespace RJWSexperience.Ideology
|
||||||
return ThoughtState.Inactive;
|
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 RimWorld;
|
||||||
|
using rjw;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Verse;
|
using Verse;
|
||||||
|
@ -45,5 +46,29 @@ namespace RJWSexperience.Ideology
|
||||||
}
|
}
|
||||||
return false;
|
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">
|
<li Class="PreceptComp_SituationalThought">
|
||||||
<thought>GenitalSize_Approved</thought>
|
<thought>GenitalSize_Approved</thought>
|
||||||
</li>
|
</li>
|
||||||
<!-- TBD
|
|
||||||
<li Class="PreceptComp_SituationalThought">
|
<li Class="PreceptComp_SituationalThought">
|
||||||
<thought>GenitalSize_Approved_Social</thought>
|
<thought>GenitalSize_Approved_Social</thought>
|
||||||
</li>
|
</li>
|
||||||
-->
|
|
||||||
</comps>
|
</comps>
|
||||||
</PreceptDef>
|
</PreceptDef>
|
||||||
|
|
||||||
|
@ -54,11 +52,9 @@
|
||||||
<li Class="PreceptComp_SituationalThought">
|
<li Class="PreceptComp_SituationalThought">
|
||||||
<thought>GenitalSize_Disapproved</thought>
|
<thought>GenitalSize_Disapproved</thought>
|
||||||
</li>
|
</li>
|
||||||
<!-- TBD
|
|
||||||
<li Class="PreceptComp_SituationalThought">
|
<li Class="PreceptComp_SituationalThought">
|
||||||
<thought>GenitalSize_Disapproved_Social</thought>
|
<thought>GenitalSize_Disapproved_Social</thought>
|
||||||
</li>
|
</li>
|
||||||
-->
|
|
||||||
</comps>
|
</comps>
|
||||||
</PreceptDef>
|
</PreceptDef>
|
||||||
|
|
||||||
|
@ -131,29 +127,46 @@
|
||||||
</ThoughtDef>
|
</ThoughtDef>
|
||||||
|
|
||||||
<!-- Social-Thoughts (Opinion)-->
|
<!-- Social-Thoughts (Opinion)-->
|
||||||
<!-- TBD
|
|
||||||
<ThoughtDef Name="CoveredInCum_Disapproved_Social">
|
<ThoughtDef>
|
||||||
<defName>CoveredInCum_Disapproved_Social</defName>
|
<defName>GenitalSize_Approved_Social</defName>
|
||||||
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
<workerClass>RJWSexperience.Ideology.ThoughtWorker_Precept_GenitalSize_Approved_Social</workerClass>
|
||||||
<workerClass>RJWSexperience.Ideology.ThoughtWorker_Precept_Bukkake_SocialDisapproved</workerClass>
|
<thoughtClass>Thought_SituationalSocial</thoughtClass>
|
||||||
<stages>
|
<stages>
|
||||||
<li>
|
<li>
|
||||||
<label>They look slimy ... </label>
|
<label>Unwanted Genitals</label>
|
||||||
<baseOpinionOffset>-5</baseOpinionOffset>
|
<baseOpinionOffset>-5</baseOpinionOffset>
|
||||||
</li>
|
</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>
|
<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>
|
<baseOpinionOffset>+5</baseOpinionOffset>
|
||||||
</li>
|
</li>
|
||||||
</stages>
|
</stages>
|
||||||
</ThoughtDef>
|
</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>
|
</Defs>
|
Loading…
Add table
Add a link
Reference in a new issue