mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-21 19:41:23 +01:00
Fix for culture/religion bug
This commit is contained in:
parent
bc8aa30ac5
commit
b924533a54
1 changed files with 2 additions and 2 deletions
|
|
@ -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};
|
||||
|
||||
})));
|
||||
})));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue