mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
Update burgs-overview.js
Updated the syntax to the one suggested by Azgaar.
This commit is contained in:
parent
bad31f0272
commit
19fdc24a95
1 changed files with 4 additions and 2 deletions
|
|
@ -565,11 +565,13 @@ function overviewBurgs() {
|
||||||
burgsOverviewAddLines();
|
burgsOverviewAddLines();
|
||||||
}
|
}
|
||||||
function lockAllBurgs() {
|
function lockAllBurgs() {
|
||||||
pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = true}));
|
pack.burgs.forEach(burg => {
|
||||||
|
burg.lock = true;});
|
||||||
burgsOverviewAddLines();
|
burgsOverviewAddLines();
|
||||||
}
|
}
|
||||||
function unlockAllBurgs() {
|
function unlockAllBurgs() {
|
||||||
pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = false}));
|
pack.burgs.forEach(burg => {
|
||||||
|
burg.lock = false;});
|
||||||
burgsOverviewAddLines();
|
burgsOverviewAddLines();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue