diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 9e32774..70072b0 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -296,8 +296,7 @@ namespace RJW_Menstruation } // I hate doing this, but it's the least bad option - private bool calculatingOvulationChance = false; - public bool CalculatingOvulationChance { get => calculatingOvulationChance; } + public bool calculatingOvulationChance = false; protected float CalcuatedOvulationChance() { @@ -1597,7 +1596,7 @@ namespace RJW_Menstruation hediff.Severity = crampPain * Rand.Range(0.9f, 1.1f); HediffCompProperties_SeverityPerDay Prop = (HediffCompProperties_SeverityPerDay)hediff.TryGetComp().props; Prop.severityPerDay = -hediff.Severity / (currentIntervalTicks / GenDate.TicksPerDay) * Configurations.CycleAcceleration; - Pawn.health.AddHediff(hediff, parent.Part); + Pawn.health.AddHediff(hediff, Genital_Helper.get_genitalsBPR(Pawn)); } protected virtual void FollicularAction() diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs index fdb90d9..57a6b9d 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs @@ -378,7 +378,7 @@ namespace RJW_Menstruation private static float GetFertilityStatOrOne(Thing thing, StatDef stat, bool applyPostProcess, int cacheStaleAfterTicks) { Pawn pawn = (Pawn)thing; - if (pawn.GetMenstruationComps().Any(comp => comp.CalculatingOvulationChance)) + if (pawn.GetMenstruationComps().Any(comp => comp.calculatingOvulationChance)) return 1.0f; else return thing.GetStatValue(stat, applyPostProcess, cacheStaleAfterTicks); }