Exemplo n.º 1
0
 public static void Unlock(this ResearchProjectDef tech, Thing location, bool hardCopy)
 {
     unlocked.Archive(tech, hardCopy);
     if (!tech.IsFinished)
     {
         tech.CarefullyFinishProject(location);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }