mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
refactor: leave culture name only
This commit is contained in:
parent
830fa97d42
commit
3d8af76e42
2 changed files with 10 additions and 13 deletions
|
|
@ -500,13 +500,9 @@ function editProvinces() {
|
|||
document.getElementById("provinceNameEditorShort").value = p.name;
|
||||
applyOption(provinceNameEditorSelectForm, p.formName);
|
||||
document.getElementById("provinceNameEditorFull").value = p.fullName;
|
||||
|
||||
|
||||
const cultureId = pack.cells.culture[p.center];
|
||||
const cultureName = pack.cultures[cultureId].name;
|
||||
const provinceLangID = pack.cultures[pack.cells.culture[pack.provinces[province].center]].base;
|
||||
const provinceNameBase = Names.getNameBases()[provinceLangID].name;
|
||||
document.getElementById("provinceCultureDisplay").innerText = cultureName;
|
||||
document.getElementById("provinceLanguageDisplay").innerText = provinceNameBase;
|
||||
document.getElementById("provinceCultureDisplay").innerText = pack.cultures[cultureId].name;
|
||||
|
||||
$("#provinceNameEditor").dialog({
|
||||
resizable: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue