public GameObject CreatePrefab()
        {
            GameObject puft = SmoggyPuftConfig.CreatePuft(SmoggyPuftConfig.BABY_ID, SmoggyPuftConfig.BabyName,
                                                          SmoggyPuftConfig.BabyDescription,
                                                          "Smoggy_puft_baby_kanim"
                                                          // "baby_puft_kanim"
                                                          , true);

            EntityTemplates.ExtendEntityToBeingABaby(puft, (Tag)SmoggyPuftConfig.ID, (string)null);
            return(puft);
        }
Example #2
0
        public GameObject CreatePrefab()
        {
            ComplexRecipe.RecipeElement[] ingredients = new ComplexRecipe.RecipeElement[4]
            {
                new ComplexRecipe.RecipeElement((Tag)PuftConfig.EGG_ID, 2f),
                new ComplexRecipe.RecipeElement((Tag)PuftAlphaConfig.EGG_ID, 1f),
                new ComplexRecipe.RecipeElement((Tag)PuftBleachstoneConfig.EGG_ID, 2f),
                new ComplexRecipe.RecipeElement(SimHashes.CarbonDioxide.CreateTag(), 10f),
            };
            ComplexRecipe.RecipeElement[] results = new ComplexRecipe.RecipeElement[1]
            {
                new ComplexRecipe.RecipeElement((Tag)SmoggyPuftConfig.EGG_ID, 1f)
            };
            var r = new ComplexRecipe(ComplexRecipeManager.MakeRecipeID(ID, (IList <ComplexRecipe.RecipeElement>)ingredients,
                                                                        (IList <ComplexRecipe.RecipeElement>)results), ingredients, results, 0)
            {
                time        = 80f / 8,
                description = BabyDescription,
                nameDisplay = ComplexRecipe.RecipeNameDisplay.Result
            };

            r.fabricators = new List <Tag>()
            {
                TagManager.Create(SupermaterialRefineryConfig.ID)
            };
            return(EntityTemplates.ExtendEntityToFertileCreature(SmoggyPuftConfig.CreatePuft(ID,
                                                                                             Name,
                                                                                             Description,
                                                                                             "Smoggy_puft_adult_kanim"
                                                                                             // "puft_kanim"
                                                                                             , false), EGG_ID,
                                                                 EggName,
                                                                 Description,
                                                                 "Smoggy_puft_egg_kanim", PuftTuning.EGG_MASS, BABY_ID, 45f, 15f,
                                                                 EggChances, SmoggyPuftConfig.EGG_SORT_ORDER, true, false, true, 1f));
        }