config generate markers dialog fixes

This commit is contained in:
Azgaar 2021-09-26 18:04:53 +03:00
parent 0c0e37d69b
commit d2e9e007f7
5 changed files with 237 additions and 78 deletions

View file

@ -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) {