Skip to content

Commit

Permalink
[Preg][KKS] Change possible values of "Pregnancy progression speed" t…
Browse files Browse the repository at this point in the history
…o 1, 2, 4, 7, 14, 20
  • Loading branch information
ManlyMarco committed Mar 14, 2023
1 parent e7d8f16 commit e266e98
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Core_Pregnancy_KK/PregnancyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ private void Start()
PregnancyProgressionSpeed = Config.Bind("General", "Pregnancy progression speed", 4,
new ConfigDescription("How much faster does the in-game pregnancy progresses than the standard 40 weeks. " +
"It also reduces the time characters leave school for after birth.\n\n" +
"x1 is 40 weeks, x2 is 20 weeks, x4 is 10 weeks, x10 is 4 weeks.",
new AcceptableValueList<int>(1, 2, 4, 10)));
"x1 is 40 weeks, x2 is 20 weeks, x4 is 10 weeks, etc.",
#if KK
new AcceptableValueList<int>(1, 2, 4, 10)));
#elif KKS
new AcceptableValueList<int>(1, 2, 4, 7, 14, 20))); // Multiples of 7 to match daily updates
#endif

ConceptionEnabled = Config.Bind("General", "Enable conception", true,
"Allows characters to get pregnant from vaginal sex. Doesn't affect already pregnant characters.");
Expand Down Expand Up @@ -102,8 +106,8 @@ private void Start()
if (TimelineCompatibility.IsTimelineAvailable())
{
TimelineCompatibility.AddCharaFunctionInterpolable<int, PregnancyCharaController>(
GUID,
"week",
GUID,
"week",
"Pregnancy week",
(oci, parameter, leftValue, rightValue, factor) => parameter.Data.Week = Mathf.RoundToInt(Mathf.LerpUnclamped(leftValue, rightValue, factor)),
null,
Expand Down

0 comments on commit e266e98

Please sign in to comment.