mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 11:41:50 +00:00
Let non-primarycolors generate after 2 chunks
This commit is contained in:
parent
a3bb91ebfb
commit
f1fab0af96
@ -168,6 +168,11 @@ export class MapChunk {
|
||||
let availableColors = [enumColors.red, enumColors.green];
|
||||
if (distanceToOriginInChunks > 2) {
|
||||
availableColors.push(enumColors.blue);
|
||||
if (this.root.map.allowNonPrimaryColors) {
|
||||
availableColors.push(enumColors.yellow);
|
||||
availableColors.push(enumColors.purple);
|
||||
availableColors.push(enumColors.cyan);
|
||||
}
|
||||
}
|
||||
this.internalGeneratePatch(rng, colorPatchSize, COLOR_ITEM_SINGLETONS[rng.choice(availableColors)]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user