mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
partially refactor BurgAndStates
This commit is contained in:
parent
456485c5e8
commit
ec468914e4
4 changed files with 40 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue