Exemplo n.º 1
0
        /// <summary>Call <see cref="Farmer.addItemToInventoryBool"/> after adjusting the item quality.</summary>
        public static bool Farmer_AddItemToInventoryBool(Farmer farmer, Item item, bool makeActiveObject)
        {
            CropPatcher.ModifyCropQuality(item);

            return(farmer.addItemToInventoryBool(item, makeActiveObject));
        }
Exemplo n.º 2
0
        /// <summary>Call <see cref="Game1.createItemDebris"/> after adjusting the item quality.</summary>
        public static Debris Game_CreateItemDebris(Item item, Vector2 origin, int direction, GameLocation location, int groundLevel)
        {
            CropPatcher.ModifyCropQuality(item);

            return(Game1.createItemDebris(item, origin, direction, location, groundLevel));
        }