mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Compare commits
2 commits
f8913d1ec5
...
ff22e534d1
Author | SHA1 | Date | |
---|---|---|---|
|
ff22e534d1 | ||
|
924dc73024 |
2 changed files with 4 additions and 3 deletions
|
@ -296,7 +296,8 @@ namespace RJW_Menstruation
|
|||
}
|
||||
|
||||
// I hate doing this, but it's the least bad option
|
||||
public bool calculatingOvulationChance = false;
|
||||
private bool calculatingOvulationChance = false;
|
||||
public bool CalculatingOvulationChance { get => calculatingOvulationChance; }
|
||||
|
||||
protected float CalcuatedOvulationChance()
|
||||
{
|
||||
|
@ -1596,7 +1597,7 @@ namespace RJW_Menstruation
|
|||
hediff.Severity = crampPain * Rand.Range(0.9f, 1.1f);
|
||||
HediffCompProperties_SeverityPerDay Prop = (HediffCompProperties_SeverityPerDay)hediff.TryGetComp<HediffComp_SeverityPerDay>().props;
|
||||
Prop.severityPerDay = -hediff.Severity / (currentIntervalTicks / GenDate.TicksPerDay) * Configurations.CycleAcceleration;
|
||||
Pawn.health.AddHediff(hediff, Genital_Helper.get_genitalsBPR(Pawn));
|
||||
Pawn.health.AddHediff(hediff, parent.Part);
|
||||
}
|
||||
|
||||
protected virtual void FollicularAction()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue