diff --git a/1.4/Assemblies/RJW_Menstruation.dll b/1.4/Assemblies/RJW_Menstruation.dll index 74a0375..852e240 100644 Binary files a/1.4/Assemblies/RJW_Menstruation.dll and b/1.4/Assemblies/RJW_Menstruation.dll differ diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs index 18a9604..956f02f 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs @@ -73,6 +73,29 @@ namespace RJW_Menstruation return null; } + [Obsolete("This method is obsolete and can cause ambiguity. Use GetMenstruationCompFromVagina or GetMenstruationCompFromPregnancy instead.", true)] + public static HediffComp_Menstruation GetMenstruationComp(Hediff hediff) + { + switch (hediff) + { + case Hediff_BasePregnancy rjwPreg: + return rjwPreg.GetMenstruationCompFromPregnancy(); + case Hediff_Pregnant vanillaPreg: + return vanillaPreg.GetMenstruationCompFromPregnancy(); + case Hediff_Labor vanillaLabor: + return vanillaLabor.GetMenstruationCompFromPregnancy(); + case Hediff_LaborPushing vanillaLaborPushing: + return vanillaLaborPushing.GetMenstruationCompFromPregnancy(); + case Hediff_PartBaseNatural rjwNatrual: + return rjwNatrual.GetMenstruationCompFromVagina(); + case Hediff_PartBaseArtifical rjwArtificial: + return rjwArtificial.GetMenstruationCompFromVagina(); + default: + Log.Warning("Obsolete GetMenstruationComp called with unknown hediff. Ensure your submods are up to date."); + return null; + } + } + public static HediffComp_Anus GetAnusComp(this Hediff hediff) { if (hediff is Hediff_PartBaseNatural || hediff is Hediff_PartBaseArtifical)