mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
refactor: routes continue
This commit is contained in:
parent
910e782f1f
commit
aff29d9d71
3 changed files with 15 additions and 11 deletions
|
|
@ -29,7 +29,7 @@ export function specifyBurgs(
|
|||
): TBurgs {
|
||||
TIME && console.time("specifyBurgs");
|
||||
|
||||
const burgs: IBurg[] = [...capitals, ...towns].map(burgData => {
|
||||
const burgs = [...capitals, ...towns].map(burgData => {
|
||||
const {cell, culture, capital} = burgData;
|
||||
const state = stateIds[cell];
|
||||
|
||||
|
|
@ -38,9 +38,10 @@ export function specifyBurgs(
|
|||
const [x, y] = defineLocation(cell, port);
|
||||
|
||||
const type = defineType(cell, port, population);
|
||||
const coa = defineEmblem(state, culture, port, capital, type, cultures, states);
|
||||
const coa: ICoa = defineEmblem(state, culture, port, capital, type, cultures, states);
|
||||
|
||||
return {...burgData, state, port, population, x, y, type, coa};
|
||||
const burg: IBurg = {...burgData, state, port, population, x, y, type, coa};
|
||||
return burg;
|
||||
});
|
||||
|
||||
TIME && console.timeEnd("specifyBurgs");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue