This commit is contained in:
moreoreganostodump 2021-06-11 23:16:09 +09:00
parent aea9117e01
commit 51cbc68c91
57 changed files with 32 additions and 17 deletions

Binary file not shown.

Binary file not shown.

View File

@ -87,7 +87,7 @@
<Option26_Label>Maximum transition</Option26_Label>
<Option26_Desc>Nipples/areolas won't be darker/wider than this value.</Option26_Desc>
<Option27_Label>Transition speed of nipples</Option27_Label>
<Option27_Desc>Set how fast transition of nipples/areolas.</Option27_Desc>
<Option27_Desc>Set speed of transition of nipples/areolas.&#10;1 = instant transition</Option27_Desc>
<Option28_Label></Option28_Label>
<Option28_Desc></Option28_Desc>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -1,13 +1,13 @@
Version 1.0.3.0
- added various fetus images
- added various fetus images (thanks to GluxDesigns)
- added twin fetus image
- male insects can impregnate female
- now insects egg display on womb icon
- added breast to status window
- added milk status bar(milkable colonists compatible)
- added self lactating button
- self lactating enlarges nipple
- initial nipple size is determined by breast size
- self lactating enlarges nipple
- pawns will get different size of nipple tips, areolas and colors
- added status bars
- you can check when the pawn get breeder/incubator quirk with this
- fixed problems when cycle acceleration is too high

View File

@ -36,8 +36,8 @@ namespace MilkModule
{
if (breastcomp != null)
{
breastcomp.AdjustAreolaSize(Rand.Range(0.0f,0.001f * Configurations.NipplePermanentTransitionVariance));
breastcomp.AdjustNippleSize(Rand.Range(0.0f,0.001f * Configurations.NipplePermanentTransitionVariance));
breastcomp.AdjustAreolaSize(Rand.Range(0.0f,0.0001f * Configurations.NipplePermanentTransitionVariance));
breastcomp.AdjustNippleSize(Rand.Range(0.0f,0.0001f * Configurations.NipplePermanentTransitionVariance));
}
};

View File

@ -22,7 +22,7 @@ namespace RJW_Menstruation
public const float NippleTransitionVarianceDefault = 0.2f;
public const float NipplePermanentTransitionVarianceDefault = 0.02f;
public const float NippleMaximumTransitionDefault = 0.4f;
public const float NippleTransitionSpeedDefault = 0.1f;
public const float NippleTransitionSpeedDefault = 0.035f;
public static float ImplantationChance = ImplantationChanceDefault;
public static int ImplantationChanceAdjust = ImplantationChanceAdjustDefault;

View File

@ -38,7 +38,7 @@ namespace RJW_Menstruation
public const float defaultareola = -1;
public const float defaultnipple = -1;
public const float variation = 0.2f;
public const int tickinterval = 1250;
public const int tickinterval = 3750;
public CompProperties_Breast Props;
@ -167,7 +167,7 @@ namespace RJW_Menstruation
{
alphaCurrent = Mathf.Lerp(alphaCurrent, alpha, Configurations.NippleTransitionRatio);
areolaSizeCurrent = Mathf.Lerp(areolaSizeCurrent, areolaSize, Configurations.NippleTransitionRatio);
nippleSizeCurrent = Mathf.Lerp(nippleSizeCurrent, NippleSize, Configurations.NippleTransitionRatio);
nippleSizeCurrent = Mathf.Lerp(nippleSizeCurrent, nippleSize, Configurations.NippleTransitionRatio);
UpdateColor();
HugsLibController.Instance.TickDelayScheduler.ScheduleCallback(action, tickinterval, parent.pawn);
}
@ -185,11 +185,11 @@ namespace RJW_Menstruation
public void PregnancyTransition()
{
alphaPermanent = Math.Min(MaxAlpha, alphaPermanent + Configurations.NipplePermanentTransitionVariance.VariationRange(variation));
areolaSizePermanent = Math.Min(MaxAreola, (areolaSizePermanent + Configurations.NipplePermanentTransitionVariance.VariationRange(variation))/10);
nippleSizePermanent = Math.Min(MaxNipple, (nippleSizePermanent + Configurations.NipplePermanentTransitionVariance.VariationRange(variation))/20);
areolaSizePermanent = Math.Min(MaxAreola, areolaSizePermanent + Configurations.NipplePermanentTransitionVariance.VariationRange(variation));
nippleSizePermanent = Math.Min(MaxNipple, nippleSizePermanent + Configurations.NipplePermanentTransitionVariance.VariationRange(variation));
alpha = Math.Min(MaxAlpha, alpha + Configurations.NippleTransitionVariance.VariationRange(variation));
areolaSize = Math.Min(MaxAreola, (areolaSize + Configurations.NippleTransitionVariance.VariationRange(variation))/10);
nippleSize = Math.Min(MaxNipple, (nippleSize + Configurations.NippleTransitionVariance.VariationRange(variation))/20);
areolaSize = Math.Min(MaxAreola, areolaSize + Configurations.NippleTransitionVariance.VariationRange(variation));
nippleSize = Math.Min(MaxNipple, nippleSize + Configurations.NippleTransitionVariance.VariationRange(variation));
}
public void BirthTransition()

View File

@ -51,6 +51,7 @@ namespace RJW_Menstruation
{
public static System.Random random = new System.Random(Environment.TickCount);
public static float GetCumVolume(this Pawn pawn)
{
CompHediffBodyPart part = Genital_Helper.get_PartsHediffList(pawn, Genital_Helper.get_genitalsBPR(pawn))?.FindAll((Hediff hed) => hed.def.defName.ToLower().Contains("penis")).InRandomOrder().FirstOrDefault()?.TryGetComp<CompHediffBodyPart>();
@ -346,17 +347,21 @@ namespace RJW_Menstruation
string nippleicon, areolaicon;
nippleicon = icon + "_Nipple0" + GetNippleIndex(comp.NippleSize);
//areolaicon = icon + "_Areola0" + GetNippleIndex(comp.AreolaSize);
areolaicon = "Womb/Empty";
areolaicon = icon + "_Areola0" + GetAreolaIndex(comp.AreolaSize);
breast = ContentFinder<Texture2D>.Get(icon, false);
areola = ContentFinder<Texture2D>.Get(areolaicon, false);
nipple = ContentFinder<Texture2D>.Get(nippleicon, false);
GUI.color = pawn.story.SkinColor;
GUI.DrawTexture(rect, breast, ScaleMode.ScaleToFit);
GUI.color = comp.NippleColor;
GUI.DrawTexture(rect, areola, ScaleMode.ScaleToFit);
GUI.DrawTexture(rect, nipple, ScaleMode.ScaleToFit);
if (Configurations.Debug) TooltipHandler.TipRegion(rect, comp.DebugInfo());
}
else
@ -381,6 +386,14 @@ namespace RJW_Menstruation
else return 3;
}
public static int GetAreolaIndex(float nipplesize)
{
if (nipplesize < 0.15f) return 0;
else if (nipplesize < 0.30f) return 1;
else if (nipplesize < 0.45f) return 2;
else if (nipplesize < 0.70f) return 3;
else return 4;
}
public static void DrawMilkBars(this Pawn pawn, Rect rect)
{
@ -434,7 +447,9 @@ namespace RJW_Menstruation
TooltipHandler.TipRegion(buttonrect, tooltip);
if (GUI.Button(buttonrect, icon, style))
{
if (fullness < 0.1f) SoundDefOf.ClickReject.PlayOneShotOnCamera();
if (fullness < 0.1f
|| !pawn.IsColonistPlayerControlled
|| pawn.Downed) SoundDefOf.ClickReject.PlayOneShotOnCamera();
else
{
SoundDefOf.Click.PlayOneShotOnCamera();