mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
v 0.8.10b
This commit is contained in:
parent
121eb2c03d
commit
a24b2ed10f
2 changed files with 3 additions and 3 deletions
2
main.js
2
main.js
|
|
@ -232,7 +232,7 @@ function applyDefaultBiomesSystem() {
|
||||||
const color = ["#53679f","#fbe79f","#b5b887","#d2d082","#c8d68f","#b6d95d","#29bc56","#7dcb35","#45b348","#4b6b32","#96784b","#d5e7eb"];
|
const color = ["#53679f","#fbe79f","#b5b887","#d2d082","#c8d68f","#b6d95d","#29bc56","#7dcb35","#45b348","#4b6b32","#96784b","#d5e7eb"];
|
||||||
|
|
||||||
const i = new Uint8Array(d3.range(0, name.length));
|
const i = new Uint8Array(d3.range(0, name.length));
|
||||||
const habitability = new Uint8Array([0,2,5,15,25,50,100,80,90,10,2,0]);
|
const habitability = new Uint16Array([0,2,5,15,25,50,100,80,90,10,2,0]);
|
||||||
const iconsDensity = new Uint8Array([0,3,2,120,120,120,120,150,150,100,5,0]);
|
const iconsDensity = new Uint8Array([0,3,2,120,120,120,120,150,150,100,5,0]);
|
||||||
const icons = [{},{dune:1},{dune:1},{acacia:1, grass:9},{grass:1},{acacia:1, palm:1},{deciduous:1},{acacia:7, palm:2, deciduous:1},{deciduous:7, swamp:3},{conifer:1},{grass:1},{}];
|
const icons = [{},{dune:1},{dune:1},{acacia:1, grass:9},{grass:1},{acacia:1, palm:1},{deciduous:1},{acacia:7, palm:2, deciduous:1},{deciduous:7, swamp:3},{conifer:1},{grass:1},{}];
|
||||||
const cost = new Uint8Array([10,200,150,60,50,70,70,80,90,80,100,255]); // biome movement cost
|
const cost = new Uint8Array([10,200,150,60,50,70,70,80,90,80,100,255]); // biome movement cost
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ function editBiomes() {
|
||||||
<input data-tip="Biome color. Click to change" class="stateColor" type="color" value="${b.color[i]}">
|
<input data-tip="Biome color. Click to change" class="stateColor" type="color" value="${b.color[i]}">
|
||||||
<input data-tip="Biome name. Click and type to change" class="biomeName" value="${b.name[i]}" autocorrect="off" spellcheck="false">
|
<input data-tip="Biome name. Click and type to change" class="biomeName" value="${b.name[i]}" autocorrect="off" spellcheck="false">
|
||||||
<span data-tip="Biome habitability percent">%</span>
|
<span data-tip="Biome habitability percent">%</span>
|
||||||
<input data-tip="Biome habitability percent. Click and set new value to change" type="number" min=0 max=999 step=1 class="biomeHabitability" value=${b.habitability[i]}>
|
<input data-tip="Biome habitability percent. Click and set new value to change" type="number" min=0 max=9999 step=1 class="biomeHabitability" value=${b.habitability[i]}>
|
||||||
<span data-tip="Cells count" class="icon-check-empty"></span>
|
<span data-tip="Cells count" class="icon-check-empty"></span>
|
||||||
<div data-tip="Cells count" class="biomeCells">${b.cells[i]}</div>
|
<div data-tip="Cells count" class="biomeCells">${b.cells[i]}</div>
|
||||||
<span data-tip="Biome area" style="padding-right: 4px" class="icon-map-o"></span>
|
<span data-tip="Biome area" style="padding-right: 4px" class="icon-map-o"></span>
|
||||||
|
|
@ -140,7 +140,7 @@ function editBiomes() {
|
||||||
recalculatePopulation();
|
recalculatePopulation();
|
||||||
refreshBiomesEditor();
|
refreshBiomesEditor();
|
||||||
}
|
}
|
||||||
|
|
||||||
function togglePercentageMode() {
|
function togglePercentageMode() {
|
||||||
if (body.dataset.type === "absolute") {
|
if (body.dataset.type === "absolute") {
|
||||||
body.dataset.type = "percentage";
|
body.dataset.type = "percentage";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue