mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Modified SacredForest spawn rate and legend
This commit is contained in:
parent
a4d7ea257b
commit
5e36d30e69
1 changed files with 4 additions and 3 deletions
|
|
@ -647,15 +647,16 @@ window.Markers = (function () {
|
||||||
|
|
||||||
// Sacred forests spawn on temperate forests
|
// Sacred forests spawn on temperate forests
|
||||||
function listSacredForests({cells}) {
|
function listSacredForests({cells}) {
|
||||||
return cells.i.filter(i => !occupied[i] && cells.culture[i] && [6, 8].includes(cells.biome[i]));
|
return cells.i.filter(i => !occupied[i] && cells.culture[i] && cells.religion[i] && [6, 8].includes(cells.biome[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSacredForest(id, cell) {
|
function addSacredForest(id, cell) {
|
||||||
const {cells, cultures} = pack;
|
const {cells, cultures, religions} = pack;
|
||||||
|
|
||||||
const culture = cells.culture[cell];
|
const culture = cells.culture[cell];
|
||||||
|
const religion = cells.religion[cell];
|
||||||
const name = `${Names.getCulture(culture)} Forest`;
|
const name = `${Names.getCulture(culture)} Forest`;
|
||||||
const legend = `A sacred forest of ${cultures[culture].name} culture`;
|
const legend = `A forest sacred to the followers of ${religions[religion].name}`;
|
||||||
notes.push({id, name, legend});
|
notes.push({id, name, legend});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue