Beispiel #1
0
 public static void Ejected(this ResearchProjectDef tech, Thing place, bool hardCopy)
 {
     if (!tech.HasBackup(hardCopy))
     {
         Dictionary <ResearchProjectDef, float> progress = (Dictionary <ResearchProjectDef, float>)progressInfo.GetValue(Find.ResearchManager);
         progress[tech] = 0f;
         unlocked.TechsArchived.Remove(tech);
         Messages.Message("MessageEjectedTech".Translate(tech.label), place, MessageTypeDefOf.TaskCompletion, true);
     }
 }