From ad6e2ea8fc26cabcca380a7b24d18dac7d642c64 Mon Sep 17 00:00:00 2001 From: O-01-67 <68935009+O-01-67@users.noreply.github.com> Date: Fri, 16 Sep 2022 21:45:18 -0400 Subject: [PATCH] Made lithification chance changeable 0.0003 is still the default --- mods/the_ground.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/the_ground.js b/mods/the_ground.js index 46e2c8e4..0ad8e7a9 100644 --- a/mods/the_ground.js +++ b/mods/the_ground.js @@ -13,9 +13,9 @@ Proper classification of limestone within these code comments //Generalized sedimentation function - function sedimentation(pixel,sedimentNeighborTable,finalRock) { - var validNeighborArray = Array.apply(null, Array(adjacentCoords.length)).map(function() {return false}); - if(Math.random() < 0.0003) { + function sedimentation(pixel,sedimentNeighborTable,finalRock,chance=0.0003) { + if(Math.random() < chance) { + var validNeighborArray = Array.apply(null, Array(adjacentCoords.length)).map(function() {return false}); //sedimentSandstoneTries++; for(i = 0; i < adjacentCoords.length; i++) { //sedimentSandstoneTryIterations++;