Change argument name of GetMenstruationComp(vagina) for clarity

This commit is contained in:
lutepickle 2022-07-12 14:47:42 -07:00
parent 35b875980a
commit 8babac6378

View file

@ -44,11 +44,11 @@ namespace RJW_Menstruation
return comps.Where(c => c.IsDangerDay).RandomElementWithFallback() ?? comps.RandomElementWithFallback();
}
public static HediffComp_Menstruation GetMenstruationComp(this Hediff hediff)
public static HediffComp_Menstruation GetMenstruationComp(this Hediff vagina)
{
if (hediff is Hediff_PartBaseNatural || hediff is Hediff_PartBaseArtifical)
if (vagina is Hediff_PartBaseNatural || vagina is Hediff_PartBaseArtifical)
{
return hediff.TryGetComp<HediffComp_Menstruation>();
return vagina.TryGetComp<HediffComp_Menstruation>();
}
return null;
}