removed armor reproduction bug

This commit is contained in:
MaxRobinsonTheGreat
2021-12-17 18:20:43 -06:00
parent 7a4c19bbdf
commit b79ee47daf

View File

@@ -243,8 +243,7 @@ class Organism {
if (cell==null) {
return false;
}
// console.log(cell.owner == this)
if (cell.owner==this || cell.state==CellStates.empty || (!Hyperparams.foodBlocksReproduction && cell.state==CellStates.food) || (ignore_armor && loccell.state==CellStates.armor && cell.state==CellStates.food)){
if (cell.owner==this || cell.state==CellStates.empty || (!Hyperparams.foodBlocksReproduction && cell.state==CellStates.food)){
continue;
}
return false;