From 123ee69b164de6b686b90fafc174106b4bd780a3 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 20 Sep 2022 16:40:48 -0400 Subject: [PATCH] Modified SacredPinery 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 404aa632..1c5a93d8 100644 --- a/modules/markers-generator.js +++ b/modules/markers-generator.js @@ -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}); }