province type enforced on province generation

This commit is contained in:
kruschen 2024-08-26 21:03:33 +00:00
parent cdb8d29e62
commit 509fc8ca0b
2 changed files with 4 additions and 4 deletions

View file

@ -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);
} }
}); });

View file

@ -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]);