This commit is contained in:
Robert Bendun 2021-06-21 13:07:31 +02:00
parent 99a3fade00
commit 5e30c3e48a
1 changed files with 4 additions and 3 deletions

View File

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