mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
partially refactor BurgAndStates
This commit is contained in:
parent
975dea8084
commit
d1525f7255
2 changed files with 13 additions and 18 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