partially refactor BurgAndStates

This commit is contained in:
Azgaar 2021-08-08 14:32:58 +03:00
parent 456485c5e8
commit ec468914e4
4 changed files with 40 additions and 35 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);