From 6aec843b472a7814c997a86c7bc894fe8288e906 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 13 Sep 2019 00:04:27 +0300 Subject: [PATCH] v1.0.27 --- index.html | 2 +- modules/names-generator.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index c8c2bfef..7a87d9a5 100644 --- a/index.html +++ b/index.html @@ -1520,7 +1520,7 @@ - + diff --git a/modules/names-generator.js b/modules/names-generator.js index 23372cca..2399760f 100644 --- a/modules/names-generator.js +++ b/modules/names-generator.js @@ -169,8 +169,9 @@ } // generato name for the map - const getMapName = function() { - if (locked("mapName")) return; + const getMapName = function(force) { + if (!force && locked("mapName")) return; + if (force && locked("mapName")) unlock("mapName"); const base = Math.random() < .7 ? 2 : Math.random() < .5 ? rand(0, 6) : rand(0, 31); if (!nameBases[base]) {tip("Namebase is not found", false, "error"); return ""}; const min = nameBases[base].min-1;