mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
addCaves legend logic update and JS code updates.
This commit is contained in:
parent
35ab466b74
commit
87d125912f
1 changed files with 22 additions and 20 deletions
|
|
@ -968,31 +968,33 @@ window.Markers = (function () {
|
||||||
function addCaves(id, cell){
|
function addCaves(id, cell){
|
||||||
const {cells} = pack;
|
const {cells} = pack;
|
||||||
|
|
||||||
const formations = [
|
const formations = {
|
||||||
"Cave",
|
"Cave" : 10,
|
||||||
"Cavern",
|
"Cavern" : 8,
|
||||||
"Grotto",
|
"Chasm" : 6,
|
||||||
"Sinkhole",
|
"Ravine" : 6,
|
||||||
"Chasm",
|
"Fracture" : 5,
|
||||||
"Hole",
|
"Grotto" : 4,
|
||||||
"Pit",
|
"Pit" : 4,
|
||||||
"Fracture"
|
"Sinkhole" : 2,
|
||||||
];
|
"Hole" : 2,
|
||||||
const inhabitants = [
|
};
|
||||||
"fearsome monsters",
|
const status = {
|
||||||
"untold treasures",
|
"a good spot to hid treasure" : 5,
|
||||||
"lava",
|
"the home of strange monsters" : 5,
|
||||||
"water, it is flooded",
|
"totally empty" : 4,
|
||||||
"nothing, it is empty",
|
"endlessly deep and unexplored" : 4,
|
||||||
]
|
"completely flooded" : 2,
|
||||||
|
"slowly filling with lava" : 1,
|
||||||
|
}
|
||||||
|
|
||||||
var formation = ra(formations);
|
let formation = rw(formations);
|
||||||
const toponym = Names.getCulture(cells.culture[cell]);
|
const toponym = Names.getCulture(cells.culture[cell]);
|
||||||
if(cells.biome[cell] == 11){
|
if(cells.biome[cell] === 11){
|
||||||
formation = "Glacial " + formation;
|
formation = "Glacial " + formation;
|
||||||
}
|
}
|
||||||
const name = `${toponym} ${formation}`;
|
const name = `${toponym} ${formation}`;
|
||||||
const legend = `The ${name}. Locals claim that is is filled with ${ra(inhabitants)}.`;
|
const legend = `The ${name}. Locals claim that it is ${rw(status)}.`;
|
||||||
notes.push({id, name, legend});
|
notes.push({id, name, legend});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue