This commit is contained in:
Robert Bendun 2021-06-21 13:07:31 +02:00
parent 99a3fade00
commit 5e30c3e48a

View File

@ -103,11 +103,12 @@ class Evolution extends Arrangement {
amount -= this.productsAmount[this.productIndex];
}
const [x, y] = i2gc(this.productIndex++);
return {
product: Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]),
const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]);
return product && {
product,
amount,
x, y
}
};
}
}