mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Have the postbirth patch use VariousDefOf.AllVaginas
This commit is contained in:
parent
2407b52e3b
commit
68793ff811
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ namespace RJW_Menstruation
|
|||
{
|
||||
// The comp still has the pregnancy attached at this point in the process
|
||||
Hediff vagina = __instance.GetMenstruationComp()?.parent;
|
||||
if (vagina == null) vagina = mother.health.hediffSet.hediffs.FirstOrFallback(x => x.def.defName.ToLower().Contains("vagina"));
|
||||
if (vagina == null) vagina = mother.health.hediffSet.hediffs.FirstOrFallback(x => VariousDefOf.AllVaginas.Contains(x.def));
|
||||
if (vagina == null) return;
|
||||
float morph = Mathf.Max(baby.BodySize - Mathf.Pow(vagina.Severity * mother.BodySize, 2), 0f);
|
||||
vagina.Severity += morph * Configurations.VaginaMorphPower;
|
||||
|
|
Loading…
Reference in a new issue