mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
ability to lock culture in a easy-defined set
fixes uncaught error in commit dada419 from PR #910
This commit is contained in:
parent
e4a7a6ecf2
commit
2ea53d2688
2 changed files with 50 additions and 44 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue