mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +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 fullName = name + " " + formName;
|
||||||
const color = brighter(getMixedColor(state.color, 0.2), 0.3);
|
const color = brighter(getMixedColor(state.color, 0.2), 0.3);
|
||||||
const coa = generateEmblem(nameByBurg, burgEmblem, type, cultures, cultureId, state);
|
const coa = generateEmblem(nameByBurg, burgEmblem, type, cultures, cultureId, state);
|
||||||
|
const province : IProvince = {i: provinces.length + 1, name, formName, center, burg, state: state.i, fullName, color, coa,pole: state.pole};
|
||||||
provinces.push({i: provinces.length + 1, name, formName, center, burg, state: state.i, fullName, color, coa});
|
provinces.push(province);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ export function generateWildProvinces({
|
||||||
|
|
||||||
const coa = generateEmblem(formName, state, burg, cultureId);
|
const coa = generateEmblem(formName, state, burg, cultureId);
|
||||||
const color = brighter(getMixedColor(state.color, 0.2), 0.3);
|
const color = brighter(getMixedColor(state.color, 0.2), 0.3);
|
||||||
|
const province : IProvince = {i: provinceId, name, formName, center, burg: burgId, state: state.i, fullName, color, coa, pole: state.pole};
|
||||||
wildProvinces.push({i: provinceId, name, formName, center, burg: burgId, state: state.i, fullName, color, coa});
|
wildProvinces.push(province);
|
||||||
|
|
||||||
// re-check
|
// re-check
|
||||||
noProvinceCellsInState = noProvinceCells.filter(i => cells.state[i] === state.i && !provinceIds[i]);
|
noProvinceCellsInState = noProvinceCells.filter(i => cells.state[i] === state.i && !provinceIds[i]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue