mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
version update; fix add wild folk
This commit is contained in:
parent
5b3dac7175
commit
39698be077
4 changed files with 9 additions and 9 deletions
|
|
@ -526,12 +526,12 @@ window.Religions = (function () {
|
|||
|
||||
function parseLockedReligions() {
|
||||
// copy and sort the locked religions list
|
||||
const lockedReligionQueue = [...lockedReligions].sort((a, b) => a.i - b.i).map(religion => {
|
||||
const lockedReligionQueue = lockedReligions.map(religion => {
|
||||
// and filter their origins to locked religions
|
||||
let newOrigin = religion.origins.filter(n => lockedReligions.some(({i: index}) => index === n));
|
||||
if (newOrigin === []) newOrigin = [0];
|
||||
return {...religion, origins: newOrigin};
|
||||
});
|
||||
}).sort((a, b) => a.i - b.i);
|
||||
|
||||
const highestLockedIndex = Math.max(...(lockedReligions.map(r => r.i)));
|
||||
const codes = lockedReligions.length > 0 ? lockedReligions.map(r => r.code) : [];
|
||||
|
|
@ -719,7 +719,7 @@ window.Religions = (function () {
|
|||
const religionId = cells.religion[center];
|
||||
|
||||
const cultureId = cells.culture[center];
|
||||
const missingFolk = !religions.some(({type, culture, removed}) => type === "Folk" && culture === cultureId && !removed);
|
||||
const missingFolk = cultureId !== 0 && !religions.some(({type, culture, removed}) => type === "Folk" && culture === cultureId && !removed);
|
||||
const color = missingFolk ? cultures[cultureId].color
|
||||
: getMixedColor(religions[religionId].color, 0.3, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -1188,6 +1188,6 @@ async function editCultures() {
|
|||
|
||||
async function editReligions() {
|
||||
if (customization) return;
|
||||
const Editor = await import("../dynamic/editors/religions-editor.js?v=1.89.09");
|
||||
const Editor = await import("../dynamic/editors/religions-editor.js?v=1.89.10");
|
||||
Editor.open();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue