mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 18:41:23 +01:00
refactor: generate relations
This commit is contained in:
parent
907e916b45
commit
73431ec743
10 changed files with 204 additions and 14 deletions
|
|
@ -7,6 +7,7 @@ import {createCapitals} from "./createCapitals";
|
|||
import {createStateData} from "./createStateData";
|
||||
import {createTowns} from "./createTowns";
|
||||
import {expandStates} from "./expandStates";
|
||||
import {generateDiplomacy} from "./generateDiplomacy";
|
||||
import {specifyBurgs} from "./specifyBurgs";
|
||||
import {specifyStates} from "./specifyStates";
|
||||
|
||||
|
|
@ -86,7 +87,8 @@ export function generateBurgsAndStates(
|
|||
const burgIds = assignBurgIds(burgs);
|
||||
|
||||
const statistics = collectStatistics({...cells, state: stateIds, burg: burgIds}, burgs);
|
||||
const states = specifyStates(statesData, statistics, cultures, burgs);
|
||||
const {chronicle, diplomacy} = generateDiplomacy(statesData, statistics, pick(cells, "f"));
|
||||
const states = specifyStates(statesData, statistics, diplomacy, cultures, burgs);
|
||||
|
||||
return {burgIds, stateIds, burgs, states};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue