From 0c896a08107fbc6de6abc1970cec33b52be1bbf0 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 8 Dec 2020 18:47:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=80=E4=BA=9Bts-igno?= =?UTF-8?q?re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/EatConfirmCommand.ts | 3 +-- src/rooms/commands/TurnEndCommand.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rooms/commands/EatConfirmCommand.ts b/src/rooms/commands/EatConfirmCommand.ts index ce7494f..633614c 100644 --- a/src/rooms/commands/EatConfirmCommand.ts +++ b/src/rooms/commands/EatConfirmCommand.ts @@ -47,8 +47,7 @@ export class EatConfirmCommand extends Command { execute() : Array | void{ - // @ts-ignore const sessionIds = [...this.state.players.keys()]; if (this.state.currentTurn) { let player = this.state.players.get(this.state.currentTurn); From 08ec7a7799419b3b3c583922a880cd3c35fe54a0 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 8 Dec 2020 20:17:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E4=BA=BA?= =?UTF-8?q?=E7=9A=84=E6=8A=BD=E5=8D=A1=E6=B6=88=E6=81=AF=E6=B2=A1=E6=9C=89?= =?UTF-8?q?source=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/RoomExtMethod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rooms/RoomExtMethod.ts b/src/rooms/RoomExtMethod.ts index b627454..c988440 100644 --- a/src/rooms/RoomExtMethod.ts +++ b/src/rooms/RoomExtMethod.ts @@ -65,7 +65,8 @@ Object.defineProperties(Room.prototype, { let client = this.getClient(dstplayer); let sData = { player: dstplayer, - cards: cards + cards: cards, + source: source }; this.sDrawCard(client, sData); let cardIds = cards.map(card => card.id); From 66fb0af33abfaebc3c664979cd38afb199e2cd5e Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 8 Dec 2020 20:22:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index edb0819..6bcbbe7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "start": "ts-node-dev --inspect --files src/index.ts", "debug": "node --require ts-node/register --inspect src/index.ts", "dev": "DEBUG=colyseus:*,jc:* node --require ts-node/register --inspect src/index.ts", - "dev:less": "DEBUG=colyseus:command,jc:* node --require ts-node/register --inspect src/index.ts", + "dev:less": "DEBUG=colyseus:command,jc:* node --require ts-node/register --inspect=0.0.0.0:9229 src/index.ts", "loadtest": "colyseus-loadtest loadtest/example.ts --room my_room --numClients 3", "test": "echo \"Error: no test specified\" && exit 1" },