Made lithification chance changeable
0.0003 is still the default
This commit is contained in:
parent
a61d3f857b
commit
ad6e2ea8fc
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue