// Token: 0x060000D3 RID: 211 RVA: 0x00007AE0 File Offset: 0x00005CE0 private static void CheckDRDrugDefinitions2() { List<string> newMSDRValues = new List<string>(); if (DRSettings.MSDRValues2 != null && DRSettings.MSDRValues2.Count > 0) { foreach (string value in DRSettings.MSDRValues2) { string mal = MSDRUtility.HValuePart(value); if (MSDRUtility.MaladyUsed(mal)) { int end = 1; if (value.EndsWith("2")) { end = 2; } string drug = MSDRUtility.DValuePart(value); if (DefDatabase<ThingDef>.GetNamed(drug, false) != null) { int t = MSDRUtility.TValuePart(value); bool b = MSDRUtility.BValuePart(value); string oldValue = MSDRUtility.ConvertToDRValue(t, mal, drug, b, end); GenCollection.AddDistinct<string>(newMSDRValues, oldValue); } else { string newValue = MSDRUtility.ConvertToDRValue(24, mal, null, true, end); GenCollection.AddDistinct<string>(newMSDRValues, newValue); } } } } DRSettings.MSDRValues2 = newMSDRValues; }
// Token: 0x06000059 RID: 89 RVA: 0x00005B74 File Offset: 0x00003D74 public static string GetValueDRDrug(string m, List <string> master, int num) { if (m != null && master != null && master.Count > 0) { foreach (string value in master) { string Hdef = MSDRUtility.HValuePart(value); int numof = MSDRUtility.NumValuePart(value); if (Hdef == m && numof == num) { return(MSDRUtility.DValuePart(value)); } } } return(null); }