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,25 +201,37 @@ namespace RJW_Genes
/// </summary>
private void RemoveLicentiaVaginaHediffs()
{
Hediff cumflation = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Cumflation);
if (cumflation != null)
pawn.health.RemoveHediff(cumflation);
try
{
if (ModsConfig.IsActive("LustLicentia.RJWLabs")){
Hediff cumflation = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Cumflation);
if (cumflation != null)
pawn.health.RemoveHediff(cumflation);
Hediff stretched = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Stretched);
if (stretched != null && stretched.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(stretched);
Hediff stretched = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Stretched);
if (stretched != null && stretched.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(stretched);
Hediff torn = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.StretchTear);
if (torn != null && torn.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(torn);
Hediff torn = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.StretchTear);
if (torn != null && torn.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(torn);
Hediff prolapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Prolapse);
if (prolapsed != null && prolapsed.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(prolapsed);
Hediff prolapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Prolapse);
if (prolapsed != null && prolapsed.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(prolapsed);
Hediff extremeProlapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.ExtremeProlapse);
if (extremeProlapsed != null && extremeProlapsed.Part != Genital_Helper.get_anusBPR(pawn))
pawn.health.RemoveHediff(extremeProlapsed);
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>