Compare commits

..

2 commits

Author SHA1 Message Date
ADHD_Coder
430dda5f72 Merge branch 'DP_fix' into 'dev'
Draft: Fix DP interactions not adding properly cumming in pawns

See merge request lutepickle/rjw_menstruation!15
2026-08-10 00:31:29 +00:00
lutepickle
d2f6562108 Apply vagina morph to Biotech births 2026-08-09 06:41:54 -07:00
7 changed files with 11 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -1,10 +1,12 @@
using HarmonyLib;
using RimWorld;
using rjw;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using UnityEngine;
using Verse;
namespace RJW_Menstruation
@ -50,6 +52,14 @@ namespace RJW_Menstruation
{
HediffComp_Menstruation comp = __instance.GetMenstruationCompFromPregnancy();
if (comp == null) return;
if (Configurations.EnableBirthVaginaMorph)
{
HediffComp_SexPart vaginaComp = comp.parent?.TryGetComp<HediffComp_SexPart>();
if (vaginaComp == null) return;
float morph = Mathf.Max(LifeStageDefOf.HumanlikeBaby.bodySizeFactor - Mathf.Pow(vaginaComp.Size, 2), 0f);
vaginaComp.baseSize += morph * Configurations.VaginaMorphPower;
vaginaComp.UpdateSeverity();
}
comp.Pregnancy = null;
}
}

View file

@ -1,4 +1,5 @@
Version 1.6.2.5
- The vagina morph after birth setting will now apply to Biotech pregnancies.
Version 1.6.2.4
- Fix error on startup and missing womb status in RJW tab with RJW 6.1.4.