mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
refactor: split states and burgs generators
This commit is contained in:
parent
e53c3a7773
commit
d7d79ad740
18 changed files with 445 additions and 358 deletions
|
|
@ -851,13 +851,6 @@ window.Religions = (function () {
|
|||
cells.religion[center] = i;
|
||||
};
|
||||
|
||||
function updateCultures() {
|
||||
pack.religions = pack.religions.map((religion, index) => {
|
||||
if (index === 0) return religion;
|
||||
return {...religion, culture: pack.cells.culture[religion.center]};
|
||||
});
|
||||
}
|
||||
|
||||
// get supreme deity name
|
||||
const getDeityName = function (culture) {
|
||||
if (culture === undefined) {
|
||||
|
|
@ -924,5 +917,5 @@ window.Religions = (function () {
|
|||
return [trimVowels(random()) + "ism", "global"]; // else
|
||||
}
|
||||
|
||||
return {generate, add, getDeityName, updateCultures, recalculate};
|
||||
return {generate, add, getDeityName, recalculate};
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue