Пример #1
0
        /// <summary>Registers the item into it's registry</summary>
        public override IdentifiableItem Register()
        {
            base.Register();

            SlimeUtils.AddFoodToGroup(ID, SlimeEat.FoodGroup.NONTARRGOLD_SLIMES, IsFavoritedBy);

            return(this);
        }
Пример #2
0
        /// <summary>Registers the item into it's registry</summary>
        public override IdentifiableItem Register()
        {
            base.Register();

            SlimeUtils.AddFoodToGroup(ID, SlimeEat.FoodGroup.MEAT, IsFavoritedBy);
            SlimeUtils.AddFoodToGroup(ID, SlimeEat.FoodGroup.NONTARRGOLD_SLIMES, IsFavoritedBy);

            Prefab.GetComponent <Reproduce>().childPrefab.GetComponent <TransformAfterTime>().options.Add(
                new TransformAfterTime.TransformOpt()
            {
                targetPrefab = Prefab,
                weight       = 3
            }
                );

            return(this);
        }