1
0
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:
Dimava 2020-06-12 00:52:28 +03:00
parent 1de75a5887
commit 2412fa36fe
3 changed files with 2 additions and 7 deletions

View File

@ -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);

View File

@ -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(

View File

@ -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);