mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 18:11:23 +01:00
Sky burgs + air routes: layer, editor toggles, styling, altitude, icons, and generators
This commit is contained in:
parent
e94ec5b123
commit
c075e704fd
6 changed files with 45 additions and 12 deletions
|
|
@ -288,7 +288,6 @@ function overviewBurgs(settings = {stateId: null, cultureId: null}) {
|
|||
return tip("There is already a burg in this cell. Please select a free cell", false, "error");
|
||||
|
||||
const id = addBurg(point); // add new burg
|
||||
|
||||
// Mark flying burgs and assign to Sky State, make them sky ports
|
||||
if (pack.cells.h[cell] < 20) {
|
||||
const burg = pack.burgs[id];
|
||||
|
|
@ -299,6 +298,7 @@ function overviewBurgs(settings = {stateId: null, cultureId: null}) {
|
|||
if (burg.state !== skyStateId) burg.state = skyStateId;
|
||||
// Keep as non-sea port
|
||||
burg.port = 0;
|
||||
if (layerIsOn("toggleBurgIcons")) drawBurgIcons();
|
||||
}
|
||||
|
||||
if (d3.event.shiftKey === false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue