mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
config generate markers dialog fixes
This commit is contained in:
parent
0c0e37d69b
commit
d2e9e007f7
5 changed files with 237 additions and 78 deletions
|
|
@ -782,8 +782,8 @@ window.Markers = (function () {
|
|||
|
||||
function addPortals(type, icon, multiplier) {
|
||||
const {burgs} = pack;
|
||||
let portals = burgs.slice(1, rand(12, 30) + 1).map(burg => [burg.name, burg.cell]);
|
||||
let quantity = getQuantity(portals, 10, 3, multiplier);
|
||||
let portals = burgs.slice(1, Math.ceil(burgs.length / 10) + 1).map(burg => [burg.name, burg.cell]);
|
||||
let quantity = getQuantity(portals, 16, 8, multiplier);
|
||||
if (!quantity) return;
|
||||
|
||||
while (quantity) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue