Esempio n. 1
0
 public bool hitWithHoe(int xTile, int yTile, GameLocation location, HoeDirt dirt)
 {
     if ((bool)forageCrop && (int)whichForageCrop == 2)
     {
         dirt.state.Value = (Game1.IsRainingHere(location) ? 1 : 0);
         Object harvestedItem = new Object(829, 1);
         Game1.multiplayer.broadcastSprites(location, new TemporaryAnimatedSprite(12, new Vector2(xTile * 64, yTile * 64), Color.White, 8, Game1.random.NextDouble() < 0.5, 50f));
         location.playSound("dirtyHit");
         Game1.createItemDebris(harvestedItem.getOne(), new Vector2(xTile * 64 + 32, yTile * 64 + 32), -1);
         return(true);
     }
     return(false);
 }