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();
export function initColors() {
for (let c1 in allColorData) {
let data = allColorData[c1];
assert(data);

View File

@ -164,11 +164,7 @@ export class MapChunk {
let weights = {};
for (let s in allShapeData) {
const data = allShapeData[s];
if (
data.disabled ||
!data.spawnable ||
distanceToOriginInChunks < data.minDistance
) {
if (data.disabled || !data.spawnable || distanceToOriginInChunks < data.minDistance) {
continue;
}
const chance = Math_round(

View File

@ -110,7 +110,7 @@ export function initShapes() {
for (let k in enumShortcodeToSubShape) {
delete enumShortcodeToSubShape[k];
}
for (let s in allShapeData) {
let data = allShapeData[s];
assert(data.id == s);