This commit is contained in:
Azgaar 2019-09-10 20:58:13 +03:00
parent 6bd0ce5533
commit 57c1e17c88
11 changed files with 203 additions and 122 deletions

View file

@ -120,7 +120,8 @@
if (religionsTree.find(x, y, s) !== undefined) continue; // to close to existing religion
const culture = cells.culture[center];
const origin = religions.find(r => r.culture === culture && r.type === "Folk").i || 0;
const folk = religions.find(r => r.culture === culture && r.type === "Folk");
const origin = folk ? folk.i : 0;
const deity = getDeityName(culture);
const name = getCultName(form, center);
const expansionism = gauss(1.1, .5, 0, 5);