public static List <IncidentDef> AllDiseases(this BiomeDef biome) { var list = new List <IncidentDef>(); var incidents = DefDatabase <IncidentDef> .AllDefsListForReading; if (!incidents.NullOrEmpty()) { foreach (var incident in incidents) { var mtb = biome.MTBDaysOfDisease(incident); if (mtb < 99999f) { list.Add(incident); } } } return(list); }