mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
refactor(#902): regenerate cultures
This commit is contained in:
parent
5f1c2adee0
commit
788ce5f1db
3 changed files with 36 additions and 56 deletions
|
|
@ -310,15 +310,6 @@ function recreateStates() {
|
|||
function regenerateProvinces() {
|
||||
unfog();
|
||||
|
||||
// TODO: lockedProvincesIds
|
||||
|
||||
for (const i of pack.cells.i) {
|
||||
const provinceId = pack.cells.province[i];
|
||||
const lockedProvinceIndex = lockedProvincesIds.indexOf(provinceId) + 1;
|
||||
// lockedProvinceIndex is an index of locked province or 0 if state is not locked
|
||||
pack.cells.province[i] = lockedProvinceIndex;
|
||||
}
|
||||
|
||||
BurgsAndStates.generateProvinces(true, true);
|
||||
drawBorders();
|
||||
if (layerIsOn("toggleProvinces")) drawProvinces();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue