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

            return(BuyItemSettings.mustResearchFirst && projects.Count > 0);
        }