mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
feat: manually added culture inherits parent culture in Tree (1.96.05)
This commit is contained in:
parent
bf817ee8ed
commit
721cec4e58
4 changed files with 6 additions and 4 deletions
|
|
@ -8040,7 +8040,7 @@
|
||||||
<script src="modules/lakes.js"></script>
|
<script src="modules/lakes.js"></script>
|
||||||
<script src="modules/biomes.js"></script>
|
<script src="modules/biomes.js"></script>
|
||||||
<script src="modules/names-generator.js?v=1.87.14"></script>
|
<script src="modules/names-generator.js?v=1.87.14"></script>
|
||||||
<script src="modules/cultures-generator.js?v=1.96.00"></script>
|
<script src="modules/cultures-generator.js?v=1.96.05"></script>
|
||||||
<script src="modules/renderers/state-labels.js?v=1.96.04"></script>
|
<script src="modules/renderers/state-labels.js?v=1.96.04"></script>
|
||||||
<script src="modules/burgs-and-states.js?v=1.92.00"></script>
|
<script src="modules/burgs-and-states.js?v=1.92.00"></script>
|
||||||
<script src="modules/routes-generator.js"></script>
|
<script src="modules/routes-generator.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -190,12 +190,13 @@ window.Cultures = (function () {
|
||||||
name = Names.getCulture(culture, 5, 8, "");
|
name = Names.getCulture(culture, 5, 8, "");
|
||||||
base = pack.cultures[culture].base;
|
base = pack.cultures[culture].base;
|
||||||
}
|
}
|
||||||
|
|
||||||
const code = abbreviate(
|
const code = abbreviate(
|
||||||
name,
|
name,
|
||||||
pack.cultures.map(c => c.code)
|
pack.cultures.map(c => c.code)
|
||||||
);
|
);
|
||||||
const i = pack.cultures.length;
|
const i = pack.cultures.length;
|
||||||
const color = d3.color(d3.scaleSequential(d3.interpolateRainbow)(Math.random())).hex();
|
const color = getRandomColor();
|
||||||
|
|
||||||
// define emblem shape
|
// define emblem shape
|
||||||
let shield = culture.shield;
|
let shield = culture.shield;
|
||||||
|
|
@ -214,7 +215,7 @@ window.Cultures = (function () {
|
||||||
area: 0,
|
area: 0,
|
||||||
rural: 0,
|
rural: 0,
|
||||||
urban: 0,
|
urban: 0,
|
||||||
origins: [0],
|
origins: [pack.cells.culture[center]],
|
||||||
code,
|
code,
|
||||||
shield
|
shield
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -822,6 +822,7 @@ function addCulture() {
|
||||||
|
|
||||||
if (pack.cells.h[center] < 20)
|
if (pack.cells.h[center] < 20)
|
||||||
return tip("You cannot place culture center into the water. Please click on a land cell", false, "error");
|
return tip("You cannot place culture center into the water. Please click on a land cell", false, "error");
|
||||||
|
|
||||||
const occupied = pack.cultures.some(c => !c.removed && c.center === center);
|
const occupied = pack.cultures.some(c => !c.removed && c.center === center);
|
||||||
if (occupied) return tip("This cell is already a culture center. Please select a different cell", false, "error");
|
if (occupied) return tip("This cell is already a culture center. Please select a different cell", false, "error");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// version and caching control
|
// version and caching control
|
||||||
const version = "1.96.04"; // generator version, update each time
|
const version = "1.96.05"; // generator version, update each time
|
||||||
|
|
||||||
{
|
{
|
||||||
document.title += " v" + version;
|
document.title += " v" + version;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue