/// <summary> /// Creates the flora. /// </summary> /// <param name="worldX">The world x.</param> /// <param name="worldY">The world y.</param> /// <returns></returns> private void CreateFlora(Tile tile, int worldX, int worldY) { // Do some magic float noise = NoiseValue(worldX, worldY); // If below the threshold, create trees or bushes if (noise < 0.75 && noise > 0.70f) { TerrainManager.AddFlora(FloraType.OakTree, tile); } else if (noise < 0.81 && noise > 0.80f) { TerrainManager.AddFlora(FloraType.RasberryBush, tile); } else if (noise < 0.97 && noise > 0.94f) { TerrainManager.AddFlora(FloraType.PoplarTree, tile); } }