buttons to release all provinces and regenerate culture name

This commit is contained in:
Azgaar 2021-11-07 18:57:52 +03:00
parent 567cf3676a
commit 6de70f5897
8 changed files with 301 additions and 149 deletions

View file

@ -679,8 +679,8 @@ window.BurgsAndStates = (function () {
// calculate states data like area, population etc.
const collectStatistics = function () {
TIME && console.time("collectStatistics");
const cells = pack.cells,
states = pack.states;
const {cells, states} = pack;
states.forEach(s => {
if (s.removed) return;
s.cells = s.area = s.burgs = s.rural = s.urban = 0;