mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: culture data change must not ignore lock status
This commit is contained in:
parent
8a1122e668
commit
660316e4bf
6 changed files with 14 additions and 17 deletions
|
|
@ -163,8 +163,6 @@ function addListeners() {
|
|||
const line = $element.parentNode;
|
||||
const state = +line.dataset.id;
|
||||
if (classList.contains("stateCapital")) stateChangeCapitalName(state, line, $element.value);
|
||||
else if (classList.contains("cultureType")) stateChangeType(state, line, $element.value);
|
||||
else if (classList.contains("statePower")) stateChangeExpansionism(state, line, $element.value);
|
||||
});
|
||||
|
||||
$body.on("change", function (ev) {
|
||||
|
|
@ -173,6 +171,8 @@ function addListeners() {
|
|||
const line = $element.parentNode;
|
||||
const state = +line.dataset.id;
|
||||
if (classList.contains("stateCulture")) stateChangeCulture(state, line, $element.value);
|
||||
else if (classList.contains("cultureType")) stateChangeType(state, line, $element.value);
|
||||
else if (classList.contains("statePower")) stateChangeExpansionism(state, line, $element.value);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue