InverseLerp isn't Lerp. And use floats in the right place this time.

This commit is contained in:
lutepickle 2022-03-12 20:53:17 -08:00
parent ea45789db8
commit 1290d289a8
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -266,7 +266,7 @@ namespace RJW_Menstruation
// Scenario B: Pregnant, grow in the second half of first trimester
else if (parent.pawn.IsPregnant())
{
float pregnancySize = Mathf.Lerp(1 / 6, 1 / 3, parent.pawn.GetPregnancyProgress()) * MAX_BREAST_INCREMENT;
float pregnancySize = Mathf.InverseLerp(1f / 6f, 1f / 3f, parent.pawn.GetPregnancyProgress()) * MAX_BREAST_INCREMENT;
if (breastSizeIncreased > pregnancySize)
{
if (Configurations.Debug) Log.Message($"{parent.pawn}'s breasts are too large for pregnancy ({breastSizeIncreased} > {pregnancySize}), shrinking");