mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
restructure religion generator for extensibility
This commit is contained in:
parent
cc998e7773
commit
672e82cc08
2 changed files with 54 additions and 25 deletions
|
|
@ -773,3 +773,16 @@ function updateLockStatus() {
|
|||
classList.toggle("icon-lock-open");
|
||||
classList.toggle("icon-lock");
|
||||
}
|
||||
|
||||
function recalculateReligions(must) {
|
||||
if (!must && !religionsAutoChange.checked) return;
|
||||
|
||||
Religions.resetUnlockedReligions();
|
||||
Religions.expandReligions();
|
||||
Religions.expandHeresies();
|
||||
Religions.checkReligionCentres();
|
||||
|
||||
drawReligions();
|
||||
refreshReligionsEditor();
|
||||
drawReligionCenters();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue