mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
format + bug fix
This commit is contained in:
parent
532ac0c635
commit
c7c981c257
@ -213,7 +213,7 @@ export class MapChunk {
|
|||||||
this.internalGenerateRandomSubShape(rng, weights),
|
this.internalGenerateRandomSubShape(rng, weights),
|
||||||
this.internalGenerateRandomSubShape(rng, weights),
|
this.internalGenerateRandomSubShape(rng, weights),
|
||||||
this.internalGenerateRandomSubShape(rng, weights),
|
this.internalGenerateRandomSubShape(rng, weights),
|
||||||
this.internalGenerateRandomSubShape(rng, weights)
|
this.internalGenerateRandomSubShape(rng, weights),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,8 +238,8 @@ export class MapChunk {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Turn subshape at 2 random positions into a random type that is not windmill
|
// Turn subshape at 2 random positions into a random type that is not windmill
|
||||||
let quad1 = rng.nextIntRange(0,3);
|
let quad1 = rng.nextIntRange(0,4);
|
||||||
let quad2 = rng.nextIntRange(0,2);
|
let quad2 = rng.nextIntRange(0,3);
|
||||||
if (quad2 >= quad1)
|
if (quad2 >= quad1)
|
||||||
{
|
{
|
||||||
++quad2;
|
++quad2;
|
||||||
|
Loading…
Reference in New Issue
Block a user