fix display of breast fullness in gui for rjw-mc-biotech mod

This commit is contained in:
Акиями Соло 2024-01-11 20:38:38 +03:00
parent 23ae342722
commit 48f020d832

View file

@ -274,9 +274,15 @@ namespace RJW_Menstruation
//List<ThingComp> milkcomp = pawn.AllComps.FindAll(x => x is CompMilkable || x.GetType().ToString().ToLower().Contains("milkable"));
ThingComp milkcomp = null;
float res = 0;
if (VariousDefOf.Hediff_Heavy_Lactating_Permanent != null)
if (VariousDefOf.Hediff_Heavy_Lactating_Permanent != null
|| VariousDefOf.Hediff_Lactating_Permanent != null
|| VariousDefOf.Hediff_Lactating_Natural != null
|| VariousDefOf.Hediff_Lactating_Drug != null)
{
if (pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Heavy_Lactating_Permanent)) milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("hypermilkable"));
if (pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Heavy_Lactating_Permanent)
|| pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Lactating_Permanent)
|| pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Lactating_Natural)
|| pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Lactating_Drug)) milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("milkablehuman"));
else milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("milkable"));
}
else