mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Modified SacredPinery marker spawn and legend.
This commit is contained in:
parent
5e36d30e69
commit
123ee69b16
1 changed files with 4 additions and 3 deletions
|
|
@ -662,15 +662,16 @@ window.Markers = (function () {
|
|||
|
||||
// Sacred pineries spawn on boreal forests
|
||||
function listSacredPineries({cells}) {
|
||||
return cells.i.filter(i => !occupied[i] && cells.culture[i] && cells.biome[i] === 9);
|
||||
return cells.i.filter(i => !occupied[i] && cells.culture[i] && cells.religion[i] && cells.biome[i] === 9);
|
||||
}
|
||||
|
||||
function addSacredPinery(id, cell) {
|
||||
const {cells, cultures} = pack;
|
||||
const {cells, cultures, religions} = pack;
|
||||
|
||||
const culture = cells.culture[cell];
|
||||
const religion = cells.religion[cell];
|
||||
const name = `${Names.getCulture(culture)} Pinery`;
|
||||
const legend = `A sacred pinery of ${cultures[culture].name} culture`;
|
||||
const legend = `A pinery sacred to the followers of ${religions[religion].name}`;
|
||||
notes.push({id, name, legend});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue