From 804be5be0b65cebe4e4428c3b7f1eb37544b5fe4 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 20 Sep 2022 16:43:17 -0400 Subject: [PATCH] Modified SacredPalmGrove marker spawn and legend. --- modules/markers-generator.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/markers-generator.js b/modules/markers-generator.js index 1c5a93d8..6767396a 100644 --- a/modules/markers-generator.js +++ b/modules/markers-generator.js @@ -677,15 +677,16 @@ window.Markers = (function () { // Sacred palm groves spawn on oasises 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) { - const {cells, cultures} = pack; + const {cells, cultures, religions} = pack; const culture = cells.culture[cell]; + const religion = cells.religion[cell]; 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}); }