mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.276 - libs minification
This commit is contained in:
parent
1a2eb2291a
commit
71ca7a1166
17 changed files with 24 additions and 1226 deletions
|
|
@ -910,7 +910,7 @@
|
|||
const generateProvinces = function(regenerate) {
|
||||
TIME && console.time("generateProvinces");
|
||||
const localSeed = regenerate ? Math.floor(Math.random() * 1e9).toString() : seed;
|
||||
Math.seedrandom(localSeed);
|
||||
Math.random = aleaPRNG(localSeed);
|
||||
|
||||
const cells = pack.cells, states = pack.states, burgs = pack.burgs;
|
||||
const provinces = pack.provinces = [0];
|
||||
|
|
@ -928,7 +928,7 @@
|
|||
}
|
||||
|
||||
// generate provinces for a selected burgs
|
||||
Math.seedrandom(localSeed);
|
||||
Math.random = aleaPRNG(localSeed);
|
||||
states.forEach(s => {
|
||||
s.provinces = [];
|
||||
if (!s.i || s.removed) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue