diff --git a/modules/load.js b/modules/load.js index af4914e0..bf285631 100644 --- a/modules/load.js +++ b/modules/load.js @@ -234,7 +234,7 @@ function parseLoadedData(data) { if (settings[20]) mapName.value = settings[20]; if (settings[21]) hideLabels.checked = +settings[21]; if (settings[22]) stylePreset.value = settings[22]; - if (settings[23]) rescaleLabels.checked = settings[23]; + if (settings[23]) rescaleLabels.checked = +settings[23]; })(); void (function parseConfiguration() { diff --git a/modules/markers-generator.js b/modules/markers-generator.js index 256657fa..b60c3599 100644 --- a/modules/markers-generator.js +++ b/modules/markers-generator.js @@ -181,15 +181,15 @@ window.Markers = (function () { const river = pack.rivers.find(r => r.i === pack.cells.r[cell]); const riverName = river ? `${river.name} ${river.type}` : "river"; const name = river && P(0.2) ? river.name : burg.name; - const weightedAdjectives = { - "stone":10, - "wooden":1, - "lengthy":2, - "formidable":2, - "rickety":1, - "beaten":1, - "weathered":1, - }; + const weightedAdjectives = { + stone: 10, + wooden: 1, + lengthy: 2, + formidable: 2, + rickety: 1, + beaten: 1, + weathered: 1 + }; notes.push({id, name: `${name} Bridge`, legend: `A ${rw(weightedAdjectives)} bridge spans over the ${riverName} near ${burg.name}`}); quantity--; } @@ -468,15 +468,15 @@ window.Markers = (function () { const waterfalls = Array.from(cells.i.filter(i => cells.r[i] && !occupied[i] && cells.h[i] >= 50 && cells.c[i].some(c => cells.h[c] < 40 && cells.r[c]))); const quantity = getQuantity(waterfalls, 1, 5, multiplier); if (!quantity) return; - - const descriptions = [ - "A gorgeous waterfall flows here", - "The rapids of an exceptionally beautiful waterfall", - "An impressive waterfall has cut through the land", - "The cascades of a stunning waterfall", - "A river drops down from a great height forming a wonderous waterfall", - "A breathtaking waterfall cuts through the landscape", - ]; + + const descriptions = [ + "A gorgeous waterfall flows here", + "The rapids of an exceptionally beautiful waterfall", + "An impressive waterfall has cut through the land", + "The cascades of a stunning waterfall", + "A river drops down from a great height forming a wonderous waterfall", + "A breathtaking waterfall cuts through the landscape" + ]; for (let i = 0; i < waterfalls.length && i < quantity; i++) { const cell = waterfalls[i]; const id = addMarker({cell, icon, type, dy: 54, px: 16}); @@ -569,7 +569,7 @@ window.Markers = (function () { let quantity = getQuantity(hills, 30, 600, multiplier); if (!quantity) return; - const adjectives = [ + const adjectives = [ "great", "big", "huge", @@ -582,12 +582,29 @@ window.Markers = (function () { "hungry", "magical", "superior", - "terrifying", - "horrifying", - "feared" + "terrifying", + "horrifying", + "feared" ]; const subjects = ["Locals", "Elders", "Inscriptions", "Tipplers", "Legends", "Whispers", "Rumors", "Journeying folk", "Tales"]; - const species = ["Ogre", "Troll", "Cyclops", "Giant", "Monster", "Beast", "Dragon", "Undead", "Ghoul", "Vampire", "Hag", "Banshee", "Bearded Devil", "Roc", "Hydra", "Warg"]; + const species = [ + "Ogre", + "Troll", + "Cyclops", + "Giant", + "Monster", + "Beast", + "Dragon", + "Undead", + "Ghoul", + "Vampire", + "Hag", + "Banshee", + "Bearded Devil", + "Roc", + "Hydra", + "Warg" + ]; const modusOperandi = [ "steals cattle at night", "prefers eating children", @@ -595,11 +612,11 @@ window.Markers = (function () { "keeps the region at bay", "eats kids whole", "abducts young women", - "terrorizes the region", - "harasses travelers in the area", - "snatches people from homes", - "attacks anyone who dares to approach its lair", - "attacks unsuspecting victims" + "terrorizes the region", + "harasses travelers in the area", + "snatches people from homes", + "attacks anyone who dares to approach its lair", + "attacks unsuspecting victims" ]; while (quantity) { @@ -812,7 +829,21 @@ window.Markers = (function () { let quantity = getQuantity(ruins, 80, 1200, multiplier); if (!quantity) return; - const types = ["City", "Town", "Settlement", "Pyramid", "Fort", "Stronghold", "Temple", "Sacred site", "Mausoleum", "Outpost", "Fortification", "Fortress", "Castle"]; + const types = [ + "City", + "Town", + "Settlement", + "Pyramid", + "Fort", + "Stronghold", + "Temple", + "Sacred site", + "Mausoleum", + "Outpost", + "Fortification", + "Fortress", + "Castle" + ]; while (quantity) { const [cell] = extractAnyElement(ruins);