public void DropUsefullItem() { Coord Place = new Coord(); Boolean Droppable = false; while (!Droppable) { Place = new Coord() { X = State.Random.Next(68), Y = State.Random.Next(29) }; if (Map[Place.X, Place.Y].GetType() == typeof(Objects.Mapped.EThing)) Droppable = true; } Map[Place.X, Place.Y] = Mapped.GetRandomUsefull(); Map[Place.X, Place.Y].Position = Place; Draw(); }