Fix random humidity in new point
This commit is contained in:
parent
b868c656a7
commit
9322afb78b
@ -1566,8 +1566,8 @@ addBiomeButton.onclick = function() {
|
||||
// Add a biome at a random position
|
||||
let he_min = Math.max(MIN_HEAT_HUMIDITY_VALUE, limit_heat_min);
|
||||
let he_max = Math.min(MAX_HEAT_HUMIDITY_VALUE, limit_heat_max);
|
||||
let hu_min = Math.max(MIN_HEAT_HUMIDITY_VALUE, limit_heat_min);
|
||||
let hu_max = Math.min(MAX_HEAT_HUMIDITY_VALUE, limit_heat_max);
|
||||
let hu_min = Math.max(MIN_HEAT_HUMIDITY_VALUE, limit_humidity_min);
|
||||
let hu_max = Math.min(MAX_HEAT_HUMIDITY_VALUE, limit_humidity_max);
|
||||
let he = Math.round(he_min + Math.random() * (he_max - he_min));
|
||||
let hu = Math.round(hu_min + Math.random() * (hu_max - hu_min));
|
||||
addBiome({name: generateBiomeName(lastBiomeID), heat: he, humidity: hu, min_y: MIN_Y_DEFAULT, max_y: MAX_Y_DEFAULT});
|
||||
|
Loading…
x
Reference in New Issue
Block a user