Added eye editing stuff

This commit is contained in:
MaxRobinsonTheGreat
2020-08-16 15:55:37 -06:00
parent 3d3c6f8558
commit 3589df3919
18 changed files with 151 additions and 154 deletions

View File

@@ -23,19 +23,7 @@ const Hyperparams = {
this.instaKill = false;
this.lookRange = 5;
},
// calculates the optimal ratio where a producer cell is most likely to produce 1 food in its lifespan * a scalar of my choice :)
calcProducerFoodRatio : function(lifespan_fixed=true) {
if (lifespan_fixed) {
// change the foodProdProb
this.foodProdProb = (100 / this.lifespanMultiplier) * this.foodProdProbScalar;
}
else {
// change the lifespanMultiplier
this.lifespanMultiplier = Math.floor(100 / (this.foodProdProb/this.foodProdProbScalar));
}
this.lookRange = 15;
},
balanceMutationProbs : function(choice) {