mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 20:41:23 +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();
|
||||
}
|
||||
function lockAllBurgs() {
|
||||
pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = true}));
|
||||
pack.burgs.forEach(burg => {
|
||||
burg.lock = true;});
|
||||
burgsOverviewAddLines();
|
||||
}
|
||||
function unlockAllBurgs() {
|
||||
pack.burgs = pack.burgs.map(burg => ({...burg, lock: burg.lock = false}));
|
||||
pack.burgs.forEach(burg => {
|
||||
burg.lock = false;});
|
||||
burgsOverviewAddLines();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue