mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Modified SacredPalmGrove marker spawn and legend.
This commit is contained in:
parent
123ee69b16
commit
804be5be0b
1 changed files with 4 additions and 3 deletions
|
|
@ -677,15 +677,16 @@ window.Markers = (function () {
|
||||||
|
|
||||||
// Sacred palm groves spawn on oasises
|
// Sacred palm groves spawn on oasises
|
||||||
function listSacredPalmGroves({cells}) {
|
function listSacredPalmGroves({cells}) {
|
||||||
return cells.i.filter(i => !occupied[i] && cells.culture[i] && cells.biome[i] === 1 && cells.pop[i] > 1 && cells.road[i]);
|
return cells.i.filter(i => !occupied[i] && cells.culture[i] && cells.religion[i] && cells.biome[i] === 1 && cells.pop[i] > 1 && cells.road[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addSacredPalmGrove(id, cell) {
|
function addSacredPalmGrove(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)} Palm Grove`;
|
const name = `${Names.getCulture(culture)} Palm Grove`;
|
||||||
const legend = `A sacred palm grove of ${cultures[culture].name} culture`;
|
const legend = `A palm grove 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