Remove UTF-8 chars in variables
This commit is contained in:
parent
aee454d74c
commit
040f39e388
@ -32,7 +32,7 @@ minetest.register_biome({
|
||||
})
|
||||
|
||||
-- fonctions et variables de bruits
|
||||
local densités = {
|
||||
local densities = {
|
||||
{ offset = 0.000001,
|
||||
scale = 0.00001,
|
||||
},
|
||||
@ -47,10 +47,10 @@ local densités = {
|
||||
},
|
||||
}
|
||||
|
||||
local function noise_param(seed, spread, densité, octaves, persist)
|
||||
local function noise_param(seed, spread, density, octaves, persist)
|
||||
return {
|
||||
offset = densité.offset or 0.001,
|
||||
scale = densité.scale or 0.01,
|
||||
offset = density.offset or 0.001,
|
||||
scale = density.scale or 0.01,
|
||||
spread = {x = spread or 100, y = spread or 100, z = spread or 100},
|
||||
seed = seed or math.random(1,999),
|
||||
octaves = octaves or 1,
|
||||
@ -70,7 +70,7 @@ if not moretrees.enable_apple_tree then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(750, 200, densités[2]),
|
||||
noise_params = noise_param(750, 200, densities[2]),
|
||||
biomes = {"mixed_mushroom_deciduous", "deciduous_forest", "coniferous_forest", "mixed_mushroom_cold", "grassland", "deciduous_cold", "deciduous_cold_humid"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -84,7 +84,7 @@ if not moretrees.enable_oak then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter", "nalc_mediterranean:dirt_with_mediterranean_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(751, 200, densités[2]),
|
||||
noise_params = noise_param(751, 200, densities[2]),
|
||||
biomes = {"grassland", "deciduous_forest", "mixed_mushroom_deciduous", "mixed_mushroom_cold", "coniferous_forest", "mediterranean"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -98,7 +98,7 @@ if not moretrees.enable_sequoia then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter", "default:dirt_with_snow"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(752, 150, densités[4], 3),
|
||||
noise_params = noise_param(752, 150, densities[4], 3),
|
||||
biomes = {"grassland", "pine_forest", "coniferous_forest", "mixed_mushroom_cold", "deciduous_forest", "mixed_mushroom_deciduous", "taiga", "snow_biome_alpine"},
|
||||
y_min = 100,
|
||||
y_max = 210,
|
||||
@ -213,7 +213,7 @@ if not moretrees.enable_rubber_tree then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass", "default:dirt", "default:dry_dirt"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(754, 130, densités[2]),
|
||||
noise_params = noise_param(754, 130, densities[2]),
|
||||
biomes = {"rainforest", "rainforest_swamp", "mixed_mushroom_hot", "savanna", "savanna_shore"},
|
||||
y_min = -1,
|
||||
y_max = 31000,
|
||||
@ -227,7 +227,7 @@ if not moretrees.enable_willow then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(755, 130, densités[2]),
|
||||
noise_params = noise_param(755, 130, densities[2]),
|
||||
biomes = {"deciduous_forest", "mixed_mushroom_deciduous"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -239,7 +239,7 @@ if not moretrees.enable_willow then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(755, 100, densités[3]),
|
||||
noise_params = noise_param(755, 100, densities[3]),
|
||||
biomes = {"deciduous_cold", "deciduous_cold_humid"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -253,7 +253,7 @@ if not moretrees.enable_birch then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(756, 150, densités[3]),
|
||||
noise_params = noise_param(756, 150, densities[3]),
|
||||
biomes = {"coniferous_forest", "mixed_mushroom_cold", "grassland", "deciduous_forest", "mixed_mushroom_deciduous"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -267,7 +267,7 @@ if not moretrees.enable_spruce then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(757, 250, densités[2], 2),
|
||||
noise_params = noise_param(757, 250, densities[2], 2),
|
||||
biomes = {"deciduous_forest", "mixed_mushroom_deciduous"},
|
||||
y_min = 40,
|
||||
y_max = 200,
|
||||
@ -279,7 +279,7 @@ if not moretrees.enable_spruce then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(757, 250, densités[3], 2),
|
||||
noise_params = noise_param(757, 250, densities[3], 2),
|
||||
biomes = {"coniferous_forest", "mixed_mushroom_cold", "taiga", "snow_biome_forest", "snow_biome_lush", "pine_forest"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -293,7 +293,7 @@ if not moretrees.enable_fir then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(758, 250, densités[2], 2),
|
||||
noise_params = noise_param(758, 250, densities[2], 2),
|
||||
biomes = {"deciduous_forest", "mixed_mushroom_deciduous"},
|
||||
y_min = 40,
|
||||
y_max = 200,
|
||||
@ -305,7 +305,7 @@ if not moretrees.enable_fir then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_snow", "default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(758, 250, densités[3], 2),
|
||||
noise_params = noise_param(758, 250, densities[3], 2),
|
||||
biomes = {"snow_biome_forest", "taiga", "snow_biome_lush", "pine_forest", "coniferous_forest", "mixed_mushroom_cold"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -319,7 +319,7 @@ if not moretrees.enable_poplar then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(759, 250, densités[2], 3),
|
||||
noise_params = noise_param(759, 250, densities[2], 3),
|
||||
biomes = {"deciduous_forest", "mixed_mushroom_deciduous", "deciduous_cold"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -331,7 +331,7 @@ if not moretrees.enable_poplar then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(759, 100, densités[4], 3),
|
||||
noise_params = noise_param(759, 100, densities[4], 3),
|
||||
biomes = {"deciduous_cold_humid"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
@ -343,7 +343,7 @@ if not moretrees.enable_poplar then
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = noise_param(760, 50, densités[3], 2),
|
||||
noise_params = noise_param(760, 50, densities[3], 2),
|
||||
biomes = {"deciduous_cold", "deciduous_cold_humid"},
|
||||
y_min = 0,
|
||||
y_max = 31000,
|
||||
|
Loading…
Reference in New Issue
Block a user