better checking for Dyspareunia
This commit is contained in:
parent
ede10ab876
commit
55a71f0397
|
@ -10,19 +10,7 @@ namespace RJW_PlasticSurgeries
|
||||||
{
|
{
|
||||||
public abstract class Recipe_Surgery_Sphinctoplasty : Recipe_Surgery
|
public abstract class Recipe_Surgery_Sphinctoplasty : Recipe_Surgery
|
||||||
{
|
{
|
||||||
private readonly bool hasDyspareunia;
|
private readonly bool hasDyspareunia = ModLister.HasActiveModWithName("Dyspareunia");
|
||||||
|
|
||||||
public Recipe_Surgery_Sphinctoplasty()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
hasDyspareunia = Type.GetType("Dyspareunia.PenetrationUtility").ToString() != null;
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
hasDyspareunia = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,19 +10,7 @@ namespace RJW_PlasticSurgeries
|
||||||
{
|
{
|
||||||
public abstract class Recipe_Surgery_Vaginoplasty : Recipe_Surgery
|
public abstract class Recipe_Surgery_Vaginoplasty : Recipe_Surgery
|
||||||
{
|
{
|
||||||
private readonly bool hasDyspareunia;
|
private readonly bool hasDyspareunia = ModLister.HasActiveModWithName("Dyspareunia");
|
||||||
|
|
||||||
public Recipe_Surgery_Vaginoplasty()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
hasDyspareunia = Type.GetType("Dyspareunia.PenetrationUtility").ToString() != null;
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
hasDyspareunia = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue