mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
massive rework continues
This commit is contained in:
parent
d1b07fff01
commit
37391c8e8b
129 changed files with 4080 additions and 22216 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
export const generate = (pack, grid, config, utils) => {
|
||||
|
||||
|
||||
const {cells, cultures} = pack;
|
||||
const n = cells.i.length;
|
||||
|
||||
|
|
@ -36,7 +36,8 @@ export const generate = (pack, grid, config, utils) => {
|
|||
};
|
||||
|
||||
function placeCapitals(pack, grid, config, utils) {
|
||||
const {TIME, WARN, d3, graphWidth, graphHeight} = utils;
|
||||
const { WARN, d3, graphWidth, graphHeight} = utils;
|
||||
const { TIME } = config.debug;
|
||||
TIME && console.time("placeCapitals");
|
||||
let count = config.statesNumber;
|
||||
let burgs = [0];
|
||||
|
|
@ -890,4 +891,4 @@ export const getFullName = (state, utils) => {
|
|||
if (!state.name && state.formName) return "The " + state.formName;
|
||||
const adjName = adjForms.includes(state.formName) && !/-| /.test(state.name);
|
||||
return adjName ? `${getAdjective(state.name)} ${state.formName}` : `${state.formName} of ${state.name}`;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue