mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2024-08-15 00:43:19 +00:00
Fix folders and namespaces (except for the Rituals)
This commit is contained in:
parent
17a8264b49
commit
075260f091
47 changed files with 46 additions and 138 deletions
|
@ -0,0 +1,34 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology.PreceptWorkers
|
||||
{
|
||||
public class ThoughtWorker_Precept_GenitalSize : ThoughtWorker_Precept
|
||||
{
|
||||
private ThoughtDefExtension_StageFromValue stageFromValue;
|
||||
|
||||
protected ThoughtDefExtension_StageFromValue StageFromValue
|
||||
{
|
||||
get
|
||||
{
|
||||
if (stageFromValue == null)
|
||||
{
|
||||
stageFromValue = def.GetModExtension<ThoughtDefExtension_StageFromValue>();
|
||||
}
|
||||
return stageFromValue;
|
||||
}
|
||||
}
|
||||
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||
{
|
||||
if (p != null && Genital_Helper.get_AllPartsHediffList(p).Count > 0)
|
||||
{
|
||||
float bestSize = IdeoUtility.getGenitalSize(p);
|
||||
return ThoughtState.ActiveAtStage(StageFromValue.GetStageIndex(bestSize));
|
||||
}
|
||||
// This might can happen if the pawn has no genitalia ... maybe?
|
||||
return ThoughtState.Inactive;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology.PreceptWorkers
|
||||
{
|
||||
public class ThoughtWorker_Precept_GenitalSize_Social : ThoughtWorker_Precept_Social
|
||||
{
|
||||
private ThoughtDefExtension_StageFromValue stageFromValue;
|
||||
|
||||
protected ThoughtDefExtension_StageFromValue StageFromValue
|
||||
{
|
||||
get
|
||||
{
|
||||
if (stageFromValue == null)
|
||||
{
|
||||
stageFromValue = def.GetModExtension<ThoughtDefExtension_StageFromValue>();
|
||||
}
|
||||
return stageFromValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Important Note: For the Social Worker, we measure otherPawns genitalia
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
|
||||
{
|
||||
if (otherPawn != null && Genital_Helper.get_AllPartsHediffList(otherPawn).Count > 0)
|
||||
{
|
||||
float bestSize = IdeoUtility.getGenitalSize(otherPawn);
|
||||
return ThoughtState.ActiveAtStage(StageFromValue.GetStageIndex(bestSize));
|
||||
}
|
||||
// This might can happen if the pawn has no genitalia ... maybe?
|
||||
return ThoughtState.Inactive;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology.PreceptWorkers
|
||||
{
|
||||
/// <summary>
|
||||
/// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn
|
||||
/// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
|
||||
/// </summary>
|
||||
public class ThoughtWorker_Precept_NonPregnant : ThoughtWorker_Precept
|
||||
{
|
||||
/// <summary>Gets the current thought state of the given pawn.</summary>
|
||||
/// <param name="p">The pawn for whom the thoughts are generated.</param>
|
||||
/// <returns></returns>
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||
{
|
||||
return PregnancyHelper.GetPregnancy(p)?.Visible != true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology.PreceptWorkers
|
||||
{
|
||||
/// <summary>
|
||||
/// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn
|
||||
/// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
|
||||
/// </summary>
|
||||
public class ThoughtWorker_Precept_NonPregnant_Social : ThoughtWorker_Precept_Social
|
||||
{
|
||||
/// <summary>Gets the current thought state of the given pawn.</summary>
|
||||
/// <param name="p">The pawn for whom the thoughts are generated.</param>
|
||||
/// <param name="otherPawn">The pawn about whom the thoughts are generated.</param>
|
||||
/// <returns></returns>
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
|
||||
{
|
||||
return PregnancyHelper.GetPregnancy(otherPawn)?.Visible != true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology.PreceptWorkers
|
||||
{
|
||||
/// <summary>
|
||||
/// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn
|
||||
/// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
|
||||
/// </summary>
|
||||
public class ThoughtWorker_Precept_Pregnant : ThoughtWorker_Precept
|
||||
{
|
||||
/// <summary>Gets the current thought state of the given pawn.</summary>
|
||||
/// <param name="p">The pawn for whom the thoughts are generated.</param>
|
||||
/// <returns></returns>
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||
{
|
||||
return PregnancyHelper.GetPregnancy(p)?.Visible == true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.Ideology.PreceptWorkers
|
||||
{
|
||||
/// <summary>
|
||||
/// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn
|
||||
/// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
|
||||
/// </summary>
|
||||
public class ThoughtWorker_Precept_Pregnant_Social : ThoughtWorker_Precept_Social
|
||||
{
|
||||
/// <summary>Gets the current thought state of the given pawn.</summary>
|
||||
/// <param name="p">The pawn for whom the thoughts are generated.</param>
|
||||
/// <param name="otherPawn">The pawn about whom the thoughts are generated.</param>
|
||||
/// <returns></returns>
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p, Pawn otherPawn)
|
||||
{
|
||||
return PregnancyHelper.GetPregnancy(otherPawn)?.Visible == true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue