public static void Unlock(this ResearchProjectDef tech, Thing location, bool hardCopy) { unlocked.Archive(tech, hardCopy); if (!tech.IsFinished) { tech.CarefullyFinishProject(location); } }
public static void Postfix(Thing item, IThingHolder ___owner) { if (___owner is Building_BookStore bookStore && item.Stuff != null && item.Stuff.IsWithinCategory(TechDefOf.Knowledge)) { ResearchProjectDef project = ModBaseHumanResources.unlocked.techByStuff[item.Stuff]; bookStore.CompStorageGraphic.UpdateGraphics(); project.CarefullyFinishProject(bookStore); } }