mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Change the egg health modifiers to properties
This commit is contained in:
		
							parent
							
								
									af82bad406
								
							
						
					
					
						commit
						34aa9f0c3d
					
				
					 2 changed files with 29 additions and 20 deletions
				
			
		| 
						 | 
					@ -203,28 +203,37 @@ namespace RJW_Menstruation
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public float SexFrequencyModifier()
 | 
					        public float SexFrequencyModifier
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            float eggHealth = EggHealth;
 | 
					            get
 | 
				
			||||||
            if (eggHealth >= 1) return 1.0f;
 | 
					            {
 | 
				
			||||||
            else if (eggHealth <= 0) return 0.01f;
 | 
					                float eggHealth = EggHealth;
 | 
				
			||||||
            else return SexFrequencyCurve.Evaluate(eggHealth);
 | 
					                if (eggHealth >= 1) return 1.0f;
 | 
				
			||||||
 | 
					                else if (eggHealth <= 0) return 0.01f;
 | 
				
			||||||
 | 
					                else return SexFrequencyCurve.Evaluate(eggHealth);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public float SexSatisfactionModifier()
 | 
					        public float SexSatisfactionModifier
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            float eggHealth = EggHealth;
 | 
					            get
 | 
				
			||||||
            if (eggHealth >= 1) return 1.0f;
 | 
					            {
 | 
				
			||||||
            else if (eggHealth <= 0) return 0.5f;
 | 
					                float eggHealth = EggHealth;
 | 
				
			||||||
            else return SexSatisfactionCurve.Evaluate(eggHealth);
 | 
					                if (eggHealth >= 1) return 1.0f;
 | 
				
			||||||
 | 
					                else if (eggHealth <= 0) return 0.5f;
 | 
				
			||||||
 | 
					                else return SexSatisfactionCurve.Evaluate(eggHealth);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public float FertilityModifier()
 | 
					        public float FertilityModifier
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            float eggHealth = EggHealth;
 | 
					            get
 | 
				
			||||||
            if (eggHealth >= 1) return 1.0f;
 | 
					            {
 | 
				
			||||||
            else if (eggHealth <= 0) return 0.0f;
 | 
					                float eggHealth = EggHealth;
 | 
				
			||||||
            else return FertilityCurve.Evaluate(eggHealth);
 | 
					                if (eggHealth >= 1) return 1.0f;
 | 
				
			||||||
 | 
					                else if (eggHealth <= 0) return 0.0f;
 | 
				
			||||||
 | 
					                else return FertilityCurve.Evaluate(eggHealth);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public float TotalCum
 | 
					        public float TotalCum
 | 
				
			||||||
| 
						 | 
					@ -274,7 +283,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                float factor = 1.0f;
 | 
					                float factor = 1.0f;
 | 
				
			||||||
                if (Pawn.Has(Quirk.Breeder)) factor = 10.0f;
 | 
					                if (Pawn.Has(Quirk.Breeder)) factor = 10.0f;
 | 
				
			||||||
                return Pawn.health.capacities.GetLevel(xxx.reproduction) * Props.baseImplantationChanceFactor * FertilityModifier() * factor;
 | 
					                return Pawn.health.capacities.GetLevel(xxx.reproduction) * Props.baseImplantationChanceFactor * FertilityModifier * factor;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        public IEnumerable<string> GetCumsInfo
 | 
					        public IEnumerable<string> GetCumsInfo
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,7 +60,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        protected override float GetFactor(Pawn pawn)
 | 
					        protected override float GetFactor(Pawn pawn)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return AllComps(pawn).Average(comp => comp.SexFrequencyModifier());
 | 
					            return AllComps(pawn).Average(comp => comp.SexFrequencyModifier);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,7 +68,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        protected override float GetFactor(Pawn pawn)
 | 
					        protected override float GetFactor(Pawn pawn)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return AllComps(pawn).Average(comp => comp.SexSatisfactionModifier());
 | 
					            return AllComps(pawn).Average(comp => comp.SexSatisfactionModifier);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,7 +76,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        protected override float GetFactor(Pawn pawn)
 | 
					        protected override float GetFactor(Pawn pawn)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return AllComps(pawn).Average(comp => comp.SexFrequencyModifier());
 | 
					            return AllComps(pawn).Average(comp => comp.SexFrequencyModifier);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -84,7 +84,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        protected override float GetFactor(Pawn pawn)
 | 
					        protected override float GetFactor(Pawn pawn)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return AllComps(pawn).Average(comp => comp.SexSatisfactionModifier());
 | 
					            return AllComps(pawn).Average(comp => comp.SexSatisfactionModifier);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue