public void GetModdedTechTypes(ref List <TechTypeData>[] TechnologyMatrix) { ModdedTechTypeHelper mHelper = new ModdedTechTypeHelper(); foreach (KeyValuePair <string, TechType> kvp in mHelper.FoundModdedTechTypes) { EquipmentType equipmentType = mHelper.TypeDefCache[kvp.Value]; switch (equipmentType) { case EquipmentType.ExosuitArm: case EquipmentType.ExosuitModule: case EquipmentType.HoverbikeModule: case EquipmentType.SeamothModule: case EquipmentType.SeaTruckModule: case EquipmentType.VehicleModule: case (EquipmentType)200: TechnologyMatrix[(int)TechCategory.Upgrades].Add(new TechTypeData(kvp.Value, Language.main.Get(TechTypeExtensions.AsString(kvp.Value, false)))); break; case EquipmentType.Body: case EquipmentType.Chip: case EquipmentType.Foots: case EquipmentType.Gloves: case EquipmentType.Head: case EquipmentType.Tank: TechnologyMatrix[(int)TechCategory.Equipment].Add(new TechTypeData(kvp.Value, Language.main.Get(TechTypeExtensions.AsString(kvp.Value, false)))); break; case EquipmentType.Hand: TechnologyMatrix[(int)TechCategory.Tools].Add(new TechTypeData(kvp.Value, Language.main.Get(TechTypeExtensions.AsString(kvp.Value, false)))); break; case EquipmentType.BatteryCharger: case EquipmentType.PowerCellCharger: TechnologyMatrix[(int)TechCategory.Electronics].Add(new TechTypeData(kvp.Value, Language.main.Get(TechTypeExtensions.AsString(kvp.Value, false)))); break; } if (kvp.Key.Equals("SeaTruckScannerModule")) { TechnologyMatrix[(int)TechCategory.Vehicles].Add(new TechTypeData(kvp.Value, Language.main.Get(TechTypeExtensions.AsString(kvp.Value, false)))); } } }
public void GetModdedTechTypes(ref List <TechTypeData>[] TechnologyMatrix) { ModdedTechTypeHelper mHelper = new ModdedTechTypeHelper(); foreach (KeyValuePair <string, TechType> kvp in mHelper.FoundModdedTechTypes) { EquipmentType equipmentType = mHelper.TypeDefCache[kvp.Value]; switch (equipmentType) { case EquipmentType.CyclopsModule: case EquipmentType.ExosuitArm: case EquipmentType.ExosuitModule: case EquipmentType.SeamothModule: case EquipmentType.VehicleModule: case (EquipmentType)100: TechnologyMatrix[(int)TechCategory.Upgrades].Add(new TechTypeData(kvp.Value, Language.main.Get(TechTypeExtensions.AsString(kvp.Value, false)))); break; } } SNLogger.Debug("CheatManager", "Modded TechTypes checked and added."); }