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++;