Exemple #1
0
 ///////////////////////////////////////////////////////////////////////////////////////////
 public static void AddBuildable()
 {
     BuilderUtils.AddBuildable(new CustomTechInfo()
     {
         getPrefab     = AutosortTarget.GetPrefab,
         techType      = Mod.GetTechType(CustomTechType.AutosortTarget),
         techGroup     = TechGroup.InteriorModules,
         techCategory  = TechCategory.InteriorModule,
         knownAtStart  = true,
         assetPath     = "Submarine/Build/AutosortTarget",
         displayString = "Autosort Receptacle",
         tooltip       = "Wall locker linked to an Autosorter that receives sorted items.",
         techTypeKey   = CustomTechType.AutosortTarget.ToString(),
         sprite        = new Atlas.Sprite(ImageUtils.LoadTexture(Mod.GetAssetPath("AutosortTarget.png"))),
         recipe        = Mod.config.EasyBuild
                         ? new List <CustomIngredient> {
             new CustomIngredient()
             {
                 techType = TechType.Titanium,
                 amount   = 2
             }
         }
                         : new List <CustomIngredient>
         {
             new CustomIngredient()
             {
                 techType = TechType.Titanium,
                 amount   = 2
             },
             new CustomIngredient()
             {
                 techType = TechType.UraniniteCrystal,
                 amount   = 1
             },
             new CustomIngredient()
             {
                 techType = TechType.Magnetite,
                 amount   = 1
             }
         }
     });
 }
Exemple #2
0
 ///////////////////////////////////////////////////////////////////////////////////////////
 public static void AddBuildable()
 {
     BuilderUtils.AddBuildable(new CustomTechInfo()
     {
         getPrefab     = AutosortLocker.GetPrefab,
         techType      = Mod.GetTechType(CustomTechType.AutosortLocker),
         techGroup     = TechGroup.InteriorModules,
         techCategory  = TechCategory.InteriorModule,
         knownAtStart  = true,
         assetPath     = "Submarine/Build/AutosortLocker",
         displayString = "Autosorter",
         tooltip       = "Small, wall-mounted smart-locker that automatically transfers items into linked Autosort Receptacles.",
         techTypeKey   = CustomTechType.AutosortLocker.ToString(),
         sprite        = new Atlas.Sprite(ImageUtils.LoadTexture(Mod.GetAssetPath("AutosortLocker.png"))),
         recipe        = Mod.config.EasyBuild
                         ? new List <CustomIngredient> {
             new CustomIngredient()
             {
                 techType = TechType.Titanium,
                 amount   = 2
             }
         }
                         : new List <CustomIngredient>
         {
             new CustomIngredient()
             {
                 techType = TechType.Titanium,
                 amount   = 2
             },
             new CustomIngredient()
             {
                 techType = TechType.ComputerChip,
                 amount   = 1
             },
             new CustomIngredient()
             {
                 techType = TechType.AluminumOxide,
                 amount   = 2
             }
         }
     });
 }