Make the pregnant breast growth start/end a const instead of a magic number
This commit is contained in:
parent
961e7f7b73
commit
b5b9002930
|
@ -40,6 +40,8 @@ namespace RJW_Menstruation
|
|||
public const float VARIANT = 0.2f;
|
||||
public const int TICKINTERVAL = 3750;
|
||||
public const float MAX_BREAST_INCREMENT = 0.10f;
|
||||
public const float BREAST_GROWTH_START = 1f / 6f;
|
||||
public const float BREAST_GROWTH_END = 1f / 3f;
|
||||
|
||||
public CompProperties_Breast Props;
|
||||
|
||||
|
@ -282,7 +284,7 @@ namespace RJW_Menstruation
|
|||
// Scenario B: Pregnant, grow in the second half of first trimester
|
||||
else if (parent.pawn.IsPregnant())
|
||||
{
|
||||
float pregnancySize = Mathf.InverseLerp(1f / 6f, 1f / 3f, parent.pawn.GetPregnancyProgress()) * MAX_BREAST_INCREMENT;
|
||||
float pregnancySize = Mathf.InverseLerp(BREAST_GROWTH_START, BREAST_GROWTH_END, parent.pawn.GetPregnancyProgress()) * MAX_BREAST_INCREMENT;
|
||||
if (breastSizeIncreased > pregnancySize)
|
||||
{
|
||||
debugGrowthStatus = "Shrinking due to being oversize for pregnancy";
|
||||
|
|
Loading…
Reference in New Issue