From 5e36d30e69b4ef5b810587fcd8dd8ab8ef939a80 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 20 Sep 2022 16:38:55 -0400 Subject: [PATCH] Modified SacredForest spawn rate 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 8c29fffb..404aa632 100644 --- a/modules/markers-generator.js +++ b/modules/markers-generator.js @@ -647,15 +647,16 @@ window.Markers = (function () { // Sacred forests spawn on temperate forests 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) { - const {cells, cultures} = pack; + const {cells, cultures, religions} = pack; const culture = cells.culture[cell]; + const religion = cells.religion[cell]; 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}); }