Example #1
0
 public static void Postfix()
 {
     // Add new material it to all refined metals + insulation
     foreach (Element e in ElementLoader.elementTable.Values)
     {
         if (e.HasTag(GameTags.RefinedMetal))
         {
             ElementUtils.AddOreTag(e, WallPumps.WallMachineRefinedMetals);
         }
         if (e.HasTag(GameTags.Metal))
         {
             ElementUtils.AddOreTag(e, WallPumps.WallMachineMetals);
         }
     }
     ElementUtils.AddOreTag(ElementLoader.FindElementByHash(SimHashes.SuperInsulator), WallPumps.WallMachineRefinedMetals);
     ElementUtils.AddOreTag(ElementLoader.FindElementByHash(SimHashes.SuperInsulator), WallPumps.WallMachineMetals);
 }