Made lithification chance changeable

0.0003 is still the default
This commit is contained in:
O-01-67 2022-09-16 21:45:18 -04:00 committed by GitHub
parent a61d3f857b
commit ad6e2ea8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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