// Token: 0x06000006 RID: 6 RVA: 0x00002120 File Offset: 0x00000320
        public static bool ImmuneToFP(Pawn pawn, HediffDef FPdef)
        {
            List <string> drugHDefs = FoodUtility_AddFoodPoisoningHediff_prepatch.MSFPImmDrug();
            List <Hediff> hediffs   = pawn.health.hediffSet.hediffs;

            for (int i = 0; i < hediffs.Count; i++)
            {
                if (drugHDefs.Contains(hediffs[i].def.defName))
                {
                    HediffStage curStage = hediffs[i].CurStage;
                    if (curStage != null && curStage.makeImmuneTo != null)
                    {
                        for (int j = 0; j < curStage.makeImmuneTo.Count; j++)
                        {
                            if (curStage.makeImmuneTo[j] == FPdef)
                            {
                                return(true);
                            }
                        }
                    }
                }
            }
            return(false);
        }
 public static bool Prefix(Pawn pawn, Thing ingestible, FoodPoisonCause cause)
 {
     return(!FoodUtility_AddFoodPoisoningHediff_prepatch.ImmuneToFP(pawn, HediffDefOf.FoodPoisoning));
 }