public Item.Wood DestroyTree(Map map) { Bitmap = null; map.reFill(X, Y, Width, Height); if (Name[1] == '1') { map.MakeObjectRightHere(X, Y + 52, "p1", map, true); } else if (Name[1] == '3') { map.MakeObjectRightHere(X, Y + 68, "p2", map, true); } else if (Name[1] == '2') { map.MakeObjectRightHere(X, Y + 52, "p3", map, true); } else if (Name[1] == '4') { map.MakeObjectRightHere(X, Y + 68, "p4", map, true); } int numOfWood = Weight / 2; Item.Wood wood = new Item.Wood(numOfWood); return(wood); }