mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: restore rescaleLabels on load
This commit is contained in:
parent
24b6023458
commit
167e2f2c66
2 changed files with 61 additions and 30 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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--;
|
||||
}
|
||||
|
|
@ -469,14 +469,14 @@ window.Markers = (function () {
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue