mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 18:41:23 +01:00
province type enforced on province generation
This commit is contained in:
parent
cdb8d29e62
commit
509fc8ca0b
2 changed files with 4 additions and 4 deletions
|
|
@ -35,8 +35,8 @@ export function generateCoreProvinces(states: TStates, burgs: TBurgs, cultures:
|
|||
const fullName = name + " " + formName;
|
||||
const color = brighter(getMixedColor(state.color, 0.2), 0.3);
|
||||
const coa = generateEmblem(nameByBurg, burgEmblem, type, cultures, cultureId, state);
|
||||
|
||||
provinces.push({i: provinces.length + 1, name, formName, center, burg, state: state.i, fullName, color, coa});
|
||||
const province : IProvince = {i: provinces.length + 1, name, formName, center, burg, state: state.i, fullName, color, coa,pole: state.pole};
|
||||
provinces.push(province);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ export function generateWildProvinces({
|
|||
|
||||
const coa = generateEmblem(formName, state, burg, cultureId);
|
||||
const color = brighter(getMixedColor(state.color, 0.2), 0.3);
|
||||
|
||||
wildProvinces.push({i: provinceId, name, formName, center, burg: burgId, state: state.i, fullName, color, coa});
|
||||
const province : IProvince = {i: provinceId, name, formName, center, burg: burgId, state: state.i, fullName, color, coa, pole: state.pole};
|
||||
wildProvinces.push(province);
|
||||
|
||||
// re-check
|
||||
noProvinceCellsInState = noProvinceCells.filter(i => cells.state[i] === state.i && !provinceIds[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue