mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Hardened Genderfluid LicentiaLab Hediff Removal
This commit is contained in:
parent
1ddb7dc9bd
commit
2598e4cc49
1 changed files with 29 additions and 16 deletions
|
@ -1,4 +1,5 @@
|
||||||
using RimWorld;
|
using HarmonyLib;
|
||||||
|
using RimWorld;
|
||||||
using rjw;
|
using rjw;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -200,25 +201,37 @@ namespace RJW_Genes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void RemoveLicentiaVaginaHediffs()
|
private void RemoveLicentiaVaginaHediffs()
|
||||||
{
|
{
|
||||||
Hediff cumflation = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Cumflation);
|
try
|
||||||
if (cumflation != null)
|
{
|
||||||
pawn.health.RemoveHediff(cumflation);
|
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);
|
Hediff stretched = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Stretched);
|
||||||
if (stretched != null && stretched.Part != Genital_Helper.get_anusBPR(pawn))
|
if (stretched != null && stretched.Part != Genital_Helper.get_anusBPR(pawn))
|
||||||
pawn.health.RemoveHediff(stretched);
|
pawn.health.RemoveHediff(stretched);
|
||||||
|
|
||||||
Hediff torn = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.StretchTear);
|
Hediff torn = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.StretchTear);
|
||||||
if (torn != null && torn.Part != Genital_Helper.get_anusBPR(pawn))
|
if (torn != null && torn.Part != Genital_Helper.get_anusBPR(pawn))
|
||||||
pawn.health.RemoveHediff(torn);
|
pawn.health.RemoveHediff(torn);
|
||||||
|
|
||||||
Hediff prolapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Prolapse);
|
Hediff prolapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.Prolapse);
|
||||||
if (prolapsed != null && prolapsed.Part != Genital_Helper.get_anusBPR(pawn))
|
if (prolapsed != null && prolapsed.Part != Genital_Helper.get_anusBPR(pawn))
|
||||||
pawn.health.RemoveHediff(prolapsed);
|
pawn.health.RemoveHediff(prolapsed);
|
||||||
|
|
||||||
Hediff extremeProlapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.ExtremeProlapse);
|
Hediff extremeProlapsed = pawn.health.hediffSet.GetFirstHediffOfDef(LicentiaLabs.Licentia.HediffDefs.ExtremeProlapse);
|
||||||
if (extremeProlapsed != null && extremeProlapsed.Part != Genital_Helper.get_anusBPR(pawn))
|
if (extremeProlapsed != null && extremeProlapsed.Part != Genital_Helper.get_anusBPR(pawn))
|
||||||
pawn.health.RemoveHediff(extremeProlapsed);
|
pawn.health.RemoveHediff(extremeProlapsed);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
catch (TypeLoadException ex)
|
||||||
|
{
|
||||||
|
// To be expected for people without Licentia Labs, do nothing.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue