diff --git a/index.html b/index.html
index b59bd2ad..7ff95229 100644
--- a/index.html
+++ b/index.html
@@ -7863,7 +7863,7 @@
-
+
diff --git a/modules/religions-generator.js b/modules/religions-generator.js
index aa83885a..0ebd226d 100644
--- a/modules/religions-generator.js
+++ b/modules/religions-generator.js
@@ -597,7 +597,7 @@ window.Religions = (function () {
checked[neibId] = true;
const neibReligion = religionIds[neibId];
- if (neibReligion && neibReligion !== religionId) foundReligions.add(neibReligion);
+ if (neibReligion && neibReligion < religionId) foundReligions.add(neibReligion);
if (foundReligions.size >= maxReligions) return [...foundReligions];
queue.push(neibId);
}
@@ -714,6 +714,7 @@ window.Religions = (function () {
const add = function (center) {
const {cells, cultures, religions} = pack;
const religionId = cells.religion[center];
+ const i = religions.length;
const cultureId = cells.culture[center];
const missingFolk =
@@ -741,10 +742,9 @@ window.Religions = (function () {
name,
religions.map(r => r.code)
);
- const influences = getReligionsInRadius(cells.c, center, cells.religion, 0, 25, 3, 0);
+ const influences = getReligionsInRadius(cells.c, center, cells.religion, i, 25, 3, 0);
const origins = type === "Folk" ? [0] : influences;
- const i = religions.length;
religions.push({
i,
name,
diff --git a/versioning.js b/versioning.js
index 9eb3f33e..64ad10bd 100644
--- a/versioning.js
+++ b/versioning.js
@@ -1,7 +1,7 @@
"use strict";
// version and caching control
-const version = "1.89.14"; // generator version, update each time
+const version = "1.89.15"; // generator version, update each time
{
document.title += " v" + version;