比大小结果出来后调用room.battleMan.onPlayerRoundWin
This commit is contained in:
parent
5cf0b393cc
commit
92a87c3995
@ -36,7 +36,9 @@ export class DiceResultCommand extends Command<CardGameState, { timeUp: boolean
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.room.broadcast('dice_result_s2c', {winner, tatal: max, results: resultMap})
|
this.room.broadcast('dice_result_s2c', {winner, tatal: max, results: resultMap})
|
||||||
await this.delay(2 * 1000)
|
let player = this.state.players.get(winner)
|
||||||
|
const time = this.room.battleMan.onPlayerRoundWin(player)
|
||||||
|
await this.delay(time)
|
||||||
return [new DiceTurnEndCommand()];
|
return [new DiceTurnEndCommand()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user