reduction of unnecessary inspections

This commit is contained in:
Акиями Соло 2024-01-11 20:55:26 +03:00
parent b21fc85a29
commit cdfe9b44b8

View file

@ -274,10 +274,7 @@ namespace RJW_Menstruation
//List<ThingComp> milkcomp = pawn.AllComps.FindAll(x => x is CompMilkable || x.GetType().ToString().ToLower().Contains("milkable")); //List<ThingComp> milkcomp = pawn.AllComps.FindAll(x => x is CompMilkable || x.GetType().ToString().ToLower().Contains("milkable"));
ThingComp milkcomp = null; ThingComp milkcomp = null;
float res = 0; 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) 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_Permanent)