mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.3.37
This commit is contained in:
parent
a60b2eed9f
commit
af2e2c4940
1 changed files with 2 additions and 1 deletions
3
main.js
3
main.js
|
|
@ -282,10 +282,11 @@ function findBurgForMFCG(params) {
|
|||
const b = burgs[burgId];
|
||||
const referrer = new URL(document.referrer);
|
||||
for (let p of referrer.searchParams) {
|
||||
if (p[0] === "name") b.name = p[1]; else
|
||||
if (p[0] === "size") b.population = +p[1]; else
|
||||
if (p[0] === "seed") b.MFCG = +p[1]; else
|
||||
if (p[0] === "shantytown") b.shanty = +p[1]; else
|
||||
b[p[0]] = p[1];
|
||||
b[p[0]] = +p[1]; // other parameters
|
||||
}
|
||||
b.MFCGlink = document.referrer; // set direct link to MFCG
|
||||
if (params.get("name") && params.get("name") != "null") b.name = params.get("name");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue