mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
refactor: add poles to state data
This commit is contained in:
parent
b2ab699843
commit
ff5ef1ca4b
3 changed files with 15 additions and 3 deletions
|
|
@ -14,6 +14,7 @@ export function specifyStates(
|
|||
statesData: TStateData[],
|
||||
statistics: TStateStatistics,
|
||||
diplomacy: TDiplomacy,
|
||||
poles: Dict<TPoint>,
|
||||
cultures: TCultures,
|
||||
burgs: TBurgs
|
||||
): {states: TStates; conflicts: IConflict[]} {
|
||||
|
|
@ -41,6 +42,8 @@ export function specifyStates(
|
|||
const name = defineStateName(center, capitalName, nameBase, formName);
|
||||
const fullName = defineFullStateName(name, formName);
|
||||
|
||||
const pole = poles[i];
|
||||
|
||||
return {
|
||||
name,
|
||||
...stateData,
|
||||
|
|
@ -52,7 +55,8 @@ export function specifyStates(
|
|||
burgs: burgsNumber,
|
||||
...stats,
|
||||
neighbors,
|
||||
relations
|
||||
relations,
|
||||
pole
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue