Hardened Genderfluid LicentiaLab Hediff Removal

This commit is contained in:
Vegapnk 2023-07-16 10:18:52 +02:00
parent 1ddb7dc9bd
commit 2598e4cc49
1 changed files with 29 additions and 16 deletions

View File

@ -1,4 +1,5 @@
using RimWorld;
using HarmonyLib;
using RimWorld;
using rjw;
using System;
using System.Collections.Generic;
@ -200,6 +201,9 @@ namespace RJW_Genes
/// </summary>
private void RemoveLicentiaVaginaHediffs()
{
try
{
if (ModsConfig.IsActive("LustLicentia.RJWLabs")){
Hediff cumflation = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Cumflation);
if (cumflation != null)
pawn.health.RemoveHediff(cumflation);
@ -219,6 +223,15 @@ namespace RJW_Genes
Hediff extremeProlapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.ExtremeProlapse);
if (extremeProlapsed != null && extremeProlapsed.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(extremeProlapsed);
};
}
catch (TypeLoadException ex)
{
// To be expected for people without Licentia Labs, do nothing.
}
}
}
/// <summary>