No longer permanently suspend players
All checks were successful
Deploy Feature / deploy-feature (push) Successful in 23s
All checks were successful
Deploy Feature / deploy-feature (push) Successful in 23s
This commit is contained in:
@@ -466,7 +466,7 @@ export default {
|
|||||||
return !this.gameId || this.isHost
|
return !this.gameId || this.isHost
|
||||||
},
|
},
|
||||||
isGuessSuspended() {
|
isGuessSuspended() {
|
||||||
return this.step === 'game' && this.getCurrentTileStatus() === 'paused'
|
return this.step === 'game' && this.getCurrentTileStatus() === 'paused' && !!this.guessingTeamId
|
||||||
},
|
},
|
||||||
viewerSuspended() {
|
viewerSuspended() {
|
||||||
return this.isGuessSuspended && !this.canControlGame
|
return this.isGuessSuspended && !this.canControlGame
|
||||||
@@ -1061,7 +1061,7 @@ export default {
|
|||||||
|
|
||||||
if (status === 'playing') {
|
if (status === 'playing') {
|
||||||
this.tiles[key].status = 'paused'
|
this.tiles[key].status = 'paused'
|
||||||
this.guessingTeamId = this.currentSelectorId
|
this.guessingTeamId = null
|
||||||
this.pauseTransitionLockUntil = 0
|
this.pauseTransitionLockUntil = 0
|
||||||
const player = this.getPlayer()
|
const player = this.getPlayer()
|
||||||
player?.pause()
|
player?.pause()
|
||||||
@@ -1073,6 +1073,7 @@ export default {
|
|||||||
if (this.guessingTeamId) return
|
if (this.guessingTeamId) return
|
||||||
if (Date.now() < this.pauseTransitionLockUntil) return
|
if (Date.now() < this.pauseTransitionLockUntil) return
|
||||||
this.tiles[key].status = 'guessed'
|
this.tiles[key].status = 'guessed'
|
||||||
|
this.guessingTeamId = null
|
||||||
this.pauseTransitionLockUntil = 0
|
this.pauseTransitionLockUntil = 0
|
||||||
this.lastAwardedTeamId = null
|
this.lastAwardedTeamId = null
|
||||||
if (clue.answer) {
|
if (clue.answer) {
|
||||||
@@ -1112,6 +1113,7 @@ export default {
|
|||||||
const [cIndex, qIndex] = this.currentTileKey.split('-').map(Number)
|
const [cIndex, qIndex] = this.currentTileKey.split('-').map(Number)
|
||||||
const clue = this.selectedGame.categories[cIndex].clues[qIndex]
|
const clue = this.selectedGame.categories[cIndex].clues[qIndex]
|
||||||
this.tiles[this.currentTileKey].status = 'guessed'
|
this.tiles[this.currentTileKey].status = 'guessed'
|
||||||
|
this.guessingTeamId = null
|
||||||
this.pauseTransitionLockUntil = 0
|
this.pauseTransitionLockUntil = 0
|
||||||
this.lastAwardedTeamId = null
|
this.lastAwardedTeamId = null
|
||||||
if (clue.answer) {
|
if (clue.answer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user