rjw-genes/1.6/Source/Genes/RJW_Gene.cs
Telanda-DDS 7f6dc2a668 - Added in Elasticity support for Cumpilation and Eltoro Stretching.
- Updated Breeding Pulse c# with more debugging information.
- Updated Vanilla Genes Expanded Genie with updated function call.
- Removed Licentia XML & method calls from Gene_Elasticity.cs
- Fixed MatingCall Ability & checked to make sure Pheromone Spit was still functional.
- Fixed incorrect mod requirement for sex curiosity Gene.
2025-07-24 13:41:47 +10:00

41 lines
1.3 KiB
C#

using rjw;
using Verse;
namespace RJW_Genes
{
public class RJW_Gene : Gene
{
/// <summary>
/// PostMake is called after the gene is first in instanciated by Rimworld.Pawn_Genetracker , this is done just prior to the gene being added to the pawn.
/// </summary>
public override void PostMake()
{
base.PostMake();
}
/// <summary>
/// The add function is what alters the Pawn when the gene is added, PostAdd is called at the end of the AddGene function in Rimworld.Pawn_Genetracker
/// </summary>
public override void PostAdd()
{
if (pawn.kindDef == null) return; //Added to catch Rimworld creating statues of pawns.
if (GenitaliaUtility.PawnStillNeedsGenitalia(pawn))
{
Sexualizer.sexualize_pawn(pawn);
}
base.PostAdd();
}
/// <summary>
/// Executed via PawnGenerator.GenerateGenes at Pawn generation
/// Allows for execution of code that should only happen during PawnGeneration
///
/// This has an accompanying patch `Patch_AddNotifyOnGeneration.cs`.
/// </summary>
public virtual void Notify_OnPawnGeneration()
{
}
}
}