🌓🍙 Checkpoint

./characters.js:530995/21937
./characters.json:530995/83279
./room.js:530995/85
This commit is contained in:
Glitch (hello-express) 2020-04-09 12:04:20 +00:00
parent 93b4bbe4ed
commit 98364e07d9
2 changed files with 14 additions and 2 deletions

11
characters.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
const chars = require('./characters.json');
const rooms = {}; const rooms = {};
function getOrCreateRoom(roomId) { function getOrCreateRoom(roomId) {
@ -7,7 +7,8 @@ function getOrCreateRoom(roomId) {
if (!room) { if (!room) {
room = { room = {
roomId: roomId, roomId: roomId,
participants: [] participants: [],
characters:
}; };
rooms[roomId] = room; rooms[roomId] = room;
} }