@@ -26,19 +26,16 @@ function convertRoom(roomId, room, hash) {
2626 }
2727 delete room [ key ]
2828 } )
29- delete isLocked
3029 room . specialExits = room . mSpecialExits
3130 delete room . mSpecialExits
32- delete room . mSpecialExitLocks
33- delete room . exitWeights
34- delete room . exitLocks
35- delete room . isLocked
3631 for ( const key in room . customLines ) {
3732 if ( Object . hasOwnProperty . call ( room . customLines , key ) ) {
3833 const element = room . customLines [ key ] ;
39- let line = {
40- points : element . map ( points => { return { x : points [ 0 ] , y : points [ 1 ] } } ) ,
41- attributes : {
34+ room . customLines [ key ] = {
35+ points : element . map ( points => {
36+ return { x : points [ 0 ] , y : points [ 1 ] }
37+ } ) ,
38+ attributes : {
4239 color : {
4340 r : room . customLinesColor [ key ] . r ,
4441 g : room . customLinesColor [ key ] . g ,
@@ -48,7 +45,6 @@ function convertRoom(roomId, room, hash) {
4845 arrow : room . customLinesArrow [ key ]
4946 }
5047 }
51- room . customLines [ key ] = line
5248 }
5349 }
5450 delete room . customLinesArrow
@@ -101,7 +97,7 @@ function generateColors(map) {
10197 if ( i !== 16 ) {
10298 let key = `ansi_${ ( "00" + i ) . slice ( - 3 ) } `
10399 let envId
104- if ( i == 0 || i == 8 ) {
100+ if ( i === 0 || i = == 8 ) {
105101 envId = i + 8
106102 } else {
107103 envId = i
0 commit comments