Exemplo n.º 1
0
			// 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;
			}
Exemplo n.º 2
0
 // Token: 0x0600005A RID: 90 RVA: 0x00005BF4 File Offset: 0x00003DF4
 public static bool GetValueDRBills(string m, List <string> master)
 {
     if (m != null && master != null && master.Count > 0)
     {
         foreach (string value in master)
         {
             if (MSDRUtility.HValuePart(value) == m)
             {
                 return(MSDRUtility.BValuePart(value));
             }
         }
         return(true);
     }
     return(true);
 }