partially refactor BurgAndStates

This commit is contained in:
Azgaar 2021-08-08 14:32:58 +03:00 committed by Peter
parent ecdb536f95
commit 899c83fc65
2 changed files with 13 additions and 18 deletions

View file

@ -111,9 +111,7 @@ window.Production = (function () {
};
const defineExport = () => {
const {cells, burgs} = pack;
for (const burg of burgs) {
for (const burg of pack.burgs) {
if (!burg.i || burg.removed) continue;
const {population, production: resourcePool} = burg;
const localUsage = Math.ceil(population);