Merge branch 'master' into master

This commit is contained in:
Azgaar 2022-04-15 12:49:34 +03:00 committed by GitHub
commit ed3d3103e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 6779 additions and 4419 deletions

View file

@ -136,6 +136,12 @@ window.Markers = (function () {
return marker;
}
function deleteMarker(markerId) {
const noteId = 'marker' + markerId;
notes = notes.filter(note => note.id !== noteId);
pack.markers = pack.markers.filter(m => m.i !== markerId);
}
function listVolcanoes({cells}) {
return cells.i.filter(i => !occupied[i] && cells.h[i] >= 70);
}
@ -1033,5 +1039,5 @@ window.Markers = (function () {
return cells.i.filter(i => !occupied[i] && pack.cells.pop[i] <= 3);
}
return {add, generate, regenerate, getConfig, setConfig};
return {add, generate, regenerate, getConfig, setConfig, deleteMarker};
})();