rjw-genes/Source/Genes/RJW_Gene.cs
callavico 55554df7e2 Remove hediffs during Pawn Generation
Calls RemoveAllSexChangeThoughts via a notify method that we call after PawnGenerator creates genes
2023-04-26 20:56:55 -04:00

24 lines
579 B
C#

using rjw;
using Verse;
namespace RJW_Genes
{
public class RJW_Gene : Gene
{
public override void PostMake()
{
base.PostMake();
if (GenitaliaUtility.PawnStillNeedsGenitalia(pawn))
Sexualizer.sexualize_pawn(pawn);
}
/// <summary>
/// Executed via PawnGenerator.GenerateGenes at Pawn generation
/// Allows for execution of code that should only happen during PawnGeneration
/// </summary>
public virtual void Notify_OnPawnGeneration()
{
}
}
}