mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
feat: multi-parental tree for religions
This commit is contained in:
parent
23ff50bd76
commit
ff1d3566c4
4 changed files with 346 additions and 220 deletions
|
|
@ -618,17 +618,15 @@ export function resolveVersionConflicts(version) {
|
|||
}
|
||||
|
||||
if (version < 1.86) {
|
||||
// v1.86.0 added support of multi-origin culture and religion hierarchy trees
|
||||
// v1.86.0 added multi-origin culture and religion hierarchy trees
|
||||
for (const culture of pack.cultures) {
|
||||
const origin = culture.origin;
|
||||
culture.origins = [culture.origin];
|
||||
delete culture.origin;
|
||||
culture.origins = [origin];
|
||||
}
|
||||
|
||||
for (const religion of pack.religions) {
|
||||
const origin = religion.origin;
|
||||
religion.origins = [religion.origin];
|
||||
delete religion.origin;
|
||||
religion.origins = [origin];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue