移除新手关相关代码

This commit is contained in:
zhl 2021-02-02 11:41:33 +08:00
parent 314bce2145
commit fca8dbeb56
2 changed files with 7 additions and 10 deletions

View File

@ -196,8 +196,7 @@ export class GeneralRoom extends Room {
let timeOverFun = function () { let timeOverFun = function () {
handler && handler(); handler && handler();
} }
//FixMe:: 移除*1000 this.gameClock.set(name, this.clock.setTimeout(timeOverFun, millisecond , name));
this.gameClock.set(name, this.clock.setTimeout(timeOverFun, millisecond * 1000 , name));
} }
/** /**

View File

@ -14,15 +14,13 @@ export class BeginGameCommand extends Command<CardGameState, {}> {
async execute() { async execute() {
this.state.maxCardId = 0; this.state.maxCardId = 0;
// let card0 = gameUtil.initCardQue(1); let card0 = gameUtil.initCardQue(1);
// let card1 = gameUtil.initCardQue(card0.length + 1); let card1 = gameUtil.initCardQue(card0.length + 1);
// let cardAll = card0.concat(card1); let cardAll = card0.concat(card1);
// cardAll.randomSort(); cardAll.randomSort();
//FixMe:: 移除 //FixMe:: 移除
let card0 = gameUtil.initSampleCards(1) // let card0 = gameUtil.initSampleCards(1)
// let card1 = gameUtil.initSampleCards(card0.length + 1) // this.state.cardQueue = card0;
// let cardAll = card0.concat(card1)
this.state.cardQueue = card0;
let i = 0; let i = 0;
for (let [id] of this.state.players) { for (let [id] of this.state.players) {
this.room.addCard(id, new GameEnv().playerInitNums[i++], 0); this.room.addCard(id, new GameEnv().playerInitNums[i++], 0);