public static bool IsResearched(this ThingDef thing) => BuyItemSettings.mustResearchFirst && thing.GetUnfinishedPrerequisites().Count <= 0;
public static bool TryGetUnfinishedPrerequisites(ThingDef thing, out List <ResearchProjectDef> projects) { projects = thing.GetUnfinishedPrerequisites(); return(BuyItemSettings.mustResearchFirst && projects.Count > 0); }