mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +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
|
|
@ -190,12 +190,13 @@ window.Cultures = (function () {
|
|||
name = Names.getCulture(culture, 5, 8, "");
|
||||
base = pack.cultures[culture].base;
|
||||
}
|
||||
|
||||
const code = abbreviate(
|
||||
name,
|
||||
pack.cultures.map(c => c.code)
|
||||
);
|
||||
const i = pack.cultures.length;
|
||||
const color = d3.color(d3.scaleSequential(d3.interpolateRainbow)(Math.random())).hex();
|
||||
const color = getRandomColor();
|
||||
|
||||
// define emblem shape
|
||||
let shield = culture.shield;
|
||||
|
|
@ -214,7 +215,7 @@ window.Cultures = (function () {
|
|||
area: 0,
|
||||
rural: 0,
|
||||
urban: 0,
|
||||
origins: [0],
|
||||
origins: [pack.cells.culture[center]],
|
||||
code,
|
||||
shield
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue