Apply cramps to the comp's parent part instead of going through RJW to find it

This commit is contained in:
lutepickle 2023-05-14 19:25:12 -07:00
parent f8913d1ec5
commit 924dc73024

View file

@ -1596,7 +1596,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()