mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51: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
|
|
@ -7864,10 +7864,10 @@
|
|||
<script src="modules/river-generator.js"></script>
|
||||
<script src="modules/lakes.js"></script>
|
||||
<script src="modules/names-generator.js?v=1.87.14"></script>
|
||||
<script src="modules/cultures-generator.js?v=1.89.09"></script>
|
||||
<script src="modules/cultures-generator.js?v=1.89.10"></script>
|
||||
<script src="modules/burgs-and-states.js?v=1.89.07"></script>
|
||||
<script src="modules/routes-generator.js"></script>
|
||||
<script src="modules/religions-generator.js?v=1.89.09"></script>
|
||||
<script src="modules/religions-generator.js?v=1.89.10"></script>
|
||||
<script src="modules/military-generator.js"></script>
|
||||
<script src="modules/markers-generator.js?v=1.87.13"></script>
|
||||
<script src="modules/coa-generator.js"></script>
|
||||
|
|
@ -7882,11 +7882,11 @@
|
|||
|
||||
<script src="modules/ui/general.js?v=1.87.03"></script>
|
||||
<script src="modules/ui/options.js?v=1.88.02"></script>
|
||||
<script src="main.js?v=1.89.09"></script>
|
||||
<script src="main.js?v=1.89.10"></script>
|
||||
|
||||
<script defer src="modules/relief-icons.js"></script>
|
||||
<script defer src="modules/ui/style.js"></script>
|
||||
<script defer src="modules/ui/editors.js?v=1.89.09"></script>
|
||||
<script defer src="modules/ui/editors.js?v=1.89.10"></script>
|
||||
<script defer src="modules/ui/tools.js?v=1.89.00"></script>
|
||||
<script defer src="modules/ui/world-configurator.js"></script>
|
||||
<script defer src="modules/ui/heightmap-editor.js?v=1.89.06"></script>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
// version and caching control
|
||||
const version = "1.89.09"; // generator version, update each time
|
||||
const version = "1.89.10"; // generator version, update each time
|
||||
|
||||
{
|
||||
document.title += " v" + version;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue