Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }