mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
InverseLerp isn't Lerp. And use floats in the right place this time.
This commit is contained in:
parent
ea45789db8
commit
1290d289a8
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue