修订灵活时间问题
This commit is contained in:
parent
b169103835
commit
0904af34d3
@ -28,7 +28,7 @@ export class NextTurnCommand extends Command<CardGameState, {}> {
|
|||||||
let moreRoundTime = singleton(GameEnv).roundExtTime * 1000;
|
let moreRoundTime = singleton(GameEnv).roundExtTime * 1000;
|
||||||
let maxTime = 20 * 1000;
|
let maxTime = 20 * 1000;
|
||||||
for (let [, p] of this.state.players) {
|
for (let [, p] of this.state.players) {
|
||||||
p.extraTime = Math.min(p.extraTime + moreRoundTime * 1000, maxTime);
|
p.extraTime = Math.min(p.extraTime + moreRoundTime, maxTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user