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 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>
|
||||
|
|
Loading…
Reference in a new issue