Fix for culture/religion bug

This commit is contained in:
Evolvedexperiment 2019-11-09 17:54:12 +00:00
parent bc8aa30ac5
commit b924533a54

View file

@ -62,7 +62,7 @@
// add folk religions
pack.cultures.forEach(c => {
if (!c.i) {religions.push({i: 0, name: "No religion"}); return;}
if (c.removed) return;
if (c.removed) {religions.push({i: c.i, name: "Extinct religion for "+c.name, color:getMixedColor(c.color, .1, 0), removed:true}); return;}
const form = rw(forms.Folk);
const name = c.name + " " + rw(types[form]);
const deity = form === "Animism" ? null : getDeityName(c.i);
@ -352,4 +352,4 @@
return {generate, add, getDeityName, expandReligions};
})));
})));