public static bool IsBlacklisted(MechComponentDef d) { if (!SimpleMechAssembly_Main.Settings.UseOnlyCCSalvageFlag) { if (SimpleMechAssembly_Main.Settings.StructurePointBasedSalvageSalvageBlacklist.Contains(d.Description.Id)) { return(true); } if (d.ComponentTags.Contains("BLACKLISTED")) { return(true); } } return(d.IsCCNoSalvage()); }