mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.3.35
This commit is contained in:
parent
f3941bfdc4
commit
63ac434e1d
2 changed files with 2 additions and 2 deletions
2
main.js
2
main.js
|
|
@ -288,7 +288,7 @@ function findBurgForMFCG(params) {
|
||||||
b[p[0]] = p[1];
|
b[p[0]] = p[1];
|
||||||
}
|
}
|
||||||
b.MFCGlink = document.referrer; // set direct link to MFCG
|
b.MFCGlink = document.referrer; // set direct link to MFCG
|
||||||
b.name = params.get("name") || referrer.searchParams.get("name");
|
if (params.get("name") && params.get("name") != "null") b.name = params.get("name");
|
||||||
|
|
||||||
const label = burgLabels.select("[data-id='" + burgId + "']");
|
const label = burgLabels.select("[data-id='" + burgId + "']");
|
||||||
if (label.size()) {
|
if (label.size()) {
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@ function editBurg(id) {
|
||||||
} else openMFCG();
|
} else openMFCG();
|
||||||
|
|
||||||
function openMFCG(seed) {
|
function openMFCG(seed) {
|
||||||
if (!seed) openURL(burg.MFCGlink);
|
if (!seed) {openURL(burg.MFCGlink); return;}
|
||||||
const name = elSelected.text();
|
const name = elSelected.text();
|
||||||
const size = Math.max(Math.min(rn(burg.population), 65), 6);
|
const size = Math.max(Math.min(rn(burg.population), 65), 6);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue