Added some birth distance stuff
This commit is contained in:
@@ -189,6 +189,8 @@ class Organism {
|
||||
}
|
||||
if (Math.random() * 100 <= 10) {
|
||||
this.birth_distance += Math.floor(Math.random() * 4) - 2;
|
||||
if (this.birth_distance < 1)
|
||||
this.birth_distance = 1;
|
||||
}
|
||||
return mutated;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user