diff --git a/src/rooms/GeneralRoom.ts b/src/rooms/GeneralRoom.ts index a372818..6b47f8b 100644 --- a/src/rooms/GeneralRoom.ts +++ b/src/rooms/GeneralRoom.ts @@ -1,4 +1,4 @@ -import {Client, generateId, Room} from "colyseus"; +import {Client, Room} from "colyseus"; import {CardGameState} from "./schema/CardGameState"; import {OnJoinCommand} from "./commands/OnJoinCommand"; import {PlayReadyCommand} from "./commands/PlayReadyCommand"; @@ -19,8 +19,6 @@ import {GMCommand} from "./commands/GMCommand"; import {GameStateConst} from "../constants/GameStateConst"; import {GameRestartCommand} from "./commands/GameRestartCommand"; import {RobotClient} from "../robot/RobotClient"; -import axios from 'axios'; -import {wait} from "../decorators/cfg"; import {ChangePetCommand} from "./commands/ChangePetCommand"; import {createRobot} from "../common/WebApi"; diff --git a/src/rooms/commands/GameResultCommand.ts b/src/rooms/commands/GameResultCommand.ts index ed8694b..7eed480 100644 --- a/src/rooms/commands/GameResultCommand.ts +++ b/src/rooms/commands/GameResultCommand.ts @@ -98,7 +98,7 @@ export class GameResultCommand extends Command { val: val[1] }) } - resultData[statics] = statics; + resultData['statics'] = statics; let self = this; this.room.bGameResult(resultData); this.state.updateGameState(GameStateConst.STATE_GAME_OVER);