mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-21 19:41: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
13
index.html
13
index.html
|
|
@ -4689,12 +4689,13 @@
|
|||
></span>
|
||||
</div>
|
||||
|
||||
<div id="provinceCultureName" data-tip="Dominant culture in the province. This decides the naming criteria">
|
||||
Province culture: <span id="provinceCultureDisplay"></span>
|
||||
</div>
|
||||
<div id="provinceCultureBaseName" data-tip="Namesbase used by the dominant culture in the province.">
|
||||
Province language: <span id="provinceLanguageDisplay"></span>
|
||||
</div>
|
||||
<div
|
||||
id="provinceCultureName"
|
||||
data-tip="Dominant culture in the province. This defines culture-based naming. Can be changed via the Cultures Editor"
|
||||
style="margin-top: 0.2em"
|
||||
>
|
||||
Dominant culture: <span id="provinceCultureDisplay"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="namesbaseEditor" class="dialog stable textual" style="display: none">
|
||||
|
|
|
|||
|
|
@ -502,11 +502,7 @@ function editProvinces() {
|
|||
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