mirror of
				https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
				synced 2024-08-14 23:57:25 +00:00 
			
		
		
		
	better checking for Dyspareunia
This commit is contained in:
		
							parent
							
								
									ede10ab876
								
							
						
					
					
						commit
						55a71f0397
					
				
					 2 changed files with 2 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -10,19 +10,7 @@ namespace RJW_PlasticSurgeries
 | 
			
		|||
{
 | 
			
		||||
    public abstract class Recipe_Surgery_Sphinctoplasty : Recipe_Surgery
 | 
			
		||||
    {
 | 
			
		||||
        private readonly bool hasDyspareunia;
 | 
			
		||||
 | 
			
		||||
        public Recipe_Surgery_Sphinctoplasty()
 | 
			
		||||
        {
 | 
			
		||||
            try
 | 
			
		||||
            {
 | 
			
		||||
                hasDyspareunia = Type.GetType("Dyspareunia.PenetrationUtility").ToString() != null;
 | 
			
		||||
            }
 | 
			
		||||
            catch (Exception e)
 | 
			
		||||
            {
 | 
			
		||||
                hasDyspareunia = false;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        private readonly bool hasDyspareunia = ModLister.HasActiveModWithName("Dyspareunia");
 | 
			
		||||
 | 
			
		||||
        public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
 | 
			
		||||
        {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,19 +10,7 @@ namespace RJW_PlasticSurgeries
 | 
			
		|||
{
 | 
			
		||||
    public abstract class Recipe_Surgery_Vaginoplasty : Recipe_Surgery
 | 
			
		||||
    {
 | 
			
		||||
        private readonly bool hasDyspareunia;
 | 
			
		||||
 | 
			
		||||
        public Recipe_Surgery_Vaginoplasty()
 | 
			
		||||
        {
 | 
			
		||||
            try
 | 
			
		||||
            {
 | 
			
		||||
                hasDyspareunia = Type.GetType("Dyspareunia.PenetrationUtility").ToString() != null;
 | 
			
		||||
            }
 | 
			
		||||
            catch (Exception e)
 | 
			
		||||
            {
 | 
			
		||||
                hasDyspareunia = false;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        private readonly bool hasDyspareunia = ModLister.HasActiveModWithName("Dyspareunia");
 | 
			
		||||
 | 
			
		||||
        public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
 | 
			
		||||
        {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue