From 48f020d832786b7473cfe65f0a18f1c2c6a7c914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BA=D0=B8=D1=8F=D0=BC=D0=B8=20=D0=A1=D0=BE=D0=BB?= =?UTF-8?q?=D0=BE?= Date: Thu, 11 Jan 2024 20:38:38 +0300 Subject: [PATCH] fix display of breast fullness in gui for rjw-mc-biotech mod --- .../RJW_Menstruation/RJW_Menstruation/Utility.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs index ae2cb4a..862a032 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Utility.cs @@ -274,9 +274,15 @@ namespace RJW_Menstruation //List 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