mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 19:51:50 +00:00
lint-autofix
This commit is contained in:
parent
1de75a5887
commit
2412fa36fe
@ -155,7 +155,6 @@ const mix = enumColorMixingResults;
|
|||||||
initColors();
|
initColors();
|
||||||
|
|
||||||
export function initColors() {
|
export function initColors() {
|
||||||
|
|
||||||
for (let c1 in allColorData) {
|
for (let c1 in allColorData) {
|
||||||
let data = allColorData[c1];
|
let data = allColorData[c1];
|
||||||
assert(data);
|
assert(data);
|
||||||
|
|||||||
@ -164,11 +164,7 @@ export class MapChunk {
|
|||||||
let weights = {};
|
let weights = {};
|
||||||
for (let s in allShapeData) {
|
for (let s in allShapeData) {
|
||||||
const data = allShapeData[s];
|
const data = allShapeData[s];
|
||||||
if (
|
if (data.disabled || !data.spawnable || distanceToOriginInChunks < data.minDistance) {
|
||||||
data.disabled ||
|
|
||||||
!data.spawnable ||
|
|
||||||
distanceToOriginInChunks < data.minDistance
|
|
||||||
) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const chance = Math_round(
|
const chance = Math_round(
|
||||||
|
|||||||
@ -110,7 +110,7 @@ export function initShapes() {
|
|||||||
for (let k in enumShortcodeToSubShape) {
|
for (let k in enumShortcodeToSubShape) {
|
||||||
delete enumShortcodeToSubShape[k];
|
delete enumShortcodeToSubShape[k];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let s in allShapeData) {
|
for (let s in allShapeData) {
|
||||||
let data = allShapeData[s];
|
let data = allShapeData[s];
|
||||||
assert(data.id == s);
|
assert(data.id == s);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user