removed logs
This commit is contained in:
443
dist/js/bundle.js
vendored
443
dist/js/bundle.js
vendored
File diff suppressed because one or more lines are too long
@@ -14,7 +14,7 @@ const FossilRecord = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
addSpecies: function(org, ancestor) {
|
addSpecies: function(org, ancestor) {
|
||||||
console.log("Adding Species")
|
// console.log("Adding Species")
|
||||||
var new_species = new Species(org.anatomy, ancestor, this.env.total_ticks)
|
var new_species = new Species(org.anatomy, ancestor, this.env.total_ticks)
|
||||||
this.extant_species.push(new_species);
|
this.extant_species.push(new_species);
|
||||||
org.species = new_species;
|
org.species = new_species;
|
||||||
@@ -31,8 +31,8 @@ const FossilRecord = {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.extinct_species.push(s);
|
this.extinct_species.push(s);
|
||||||
console.log("Extant:", this.extant_species.length)
|
// console.log("Extant:", this.extant_species.length)
|
||||||
console.log("Extinct:", this.extinct_species.length)
|
// console.log("Extinct:", this.extinct_species.length)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class Species {
|
|||||||
this.population--;
|
this.population--;
|
||||||
if (this.population <= 0) {
|
if (this.population <= 0) {
|
||||||
this.extinct = true;
|
this.extinct = true;
|
||||||
console.log("Extinction");
|
// console.log("Extinction");
|
||||||
const FossilRecord = require("./FossilRecord");
|
const FossilRecord = require("./FossilRecord");
|
||||||
FossilRecord.fossilize(this);
|
FossilRecord.fossilize(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user