diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index abb5325..a6107df 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -203,28 +203,37 @@ namespace RJW_Menstruation } } - public float SexFrequencyModifier() + public float SexFrequencyModifier { - float eggHealth = EggHealth; - if (eggHealth >= 1) return 1.0f; - else if (eggHealth <= 0) return 0.01f; - else return SexFrequencyCurve.Evaluate(eggHealth); + get + { + float eggHealth = 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; - if (eggHealth >= 1) return 1.0f; - else if (eggHealth <= 0) return 0.5f; - else return SexSatisfactionCurve.Evaluate(eggHealth); + get + { + float eggHealth = 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; - if (eggHealth >= 1) return 1.0f; - else if (eggHealth <= 0) return 0.0f; - else return FertilityCurve.Evaluate(eggHealth); + get + { + float eggHealth = EggHealth; + if (eggHealth >= 1) return 1.0f; + else if (eggHealth <= 0) return 0.0f; + else return FertilityCurve.Evaluate(eggHealth); + } } public float TotalCum @@ -274,7 +283,7 @@ namespace RJW_Menstruation { float factor = 1.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 GetCumsInfo diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/StatParts.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/StatParts.cs index 60abd0a..6028377 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/StatParts.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/StatParts.cs @@ -60,7 +60,7 @@ namespace RJW_Menstruation { 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) { - 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) { - 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) { - return AllComps(pawn).Average(comp => comp.SexSatisfactionModifier()); + return AllComps(pawn).Average(comp => comp.SexSatisfactionModifier); } } } \ No newline at end of file