mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
#257 Update culture namesbase on change
This commit is contained in:
parent
9252838e93
commit
fb1cc4c919
1 changed files with 1 additions and 5 deletions
|
|
@ -197,11 +197,7 @@ function editCultures() {
|
||||||
function cultureUpdateBase() {
|
function cultureUpdateBase() {
|
||||||
const culture = +this.parentNode.dataset.id;
|
const culture = +this.parentNode.dataset.id;
|
||||||
const v = +this.value;
|
const v = +this.value;
|
||||||
pack.cultures.forEach(el => {
|
pack.cultures.find(el => el.i === culture).base = v;
|
||||||
if (el.i === culture) {
|
|
||||||
el.base = v;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function cultureRegenerateBurgs() {
|
function cultureRegenerateBurgs() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue