reduction of unnecessary inspections
This commit is contained in:
parent
b21fc85a29
commit
cdfe9b44b8
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue