config generate markers dialog fixes

This commit is contained in:
Azgaar 2021-09-26 18:04:53 +03:00 committed by Dranorter
parent 91f0c3e860
commit fe26cc6707
5 changed files with 237 additions and 78 deletions

View file

@ -796,8 +796,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) {