ability to lock culture in a easy-defined set

fixes uncaught error in commit dada419 from PR #910
This commit is contained in:
Canis Artorus 2023-02-23 00:06:50 -07:00
parent e4a7a6ecf2
commit 2ea53d2688
2 changed files with 50 additions and 44 deletions

View file

@ -814,7 +814,7 @@ window.Religions = (function () {
const faith = religions.find(r => r.i === i);
if (faith) {
if (faith.type === "Folk" && !faith.locked)
tReligions.push({...faith, removed: true}));
tReligions.push({...faith, removed: true});
else tReligions.push(faith);
}
else tReligions.push({
@ -861,7 +861,7 @@ window.Religions = (function () {
if (r.origins?.length < 1) r.origins = [0];
if (r.type === "Folk"){
if (r.type === "Folk" && cultures[r.i]) {
r.center = cultures[r.i].center;
}
else {