Skip to content

Commit

Permalink
Store
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyhhssyy committed Jun 22, 2024
1 parent bf3f006 commit e881f8e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
11 changes: 9 additions & 2 deletions public/rules/SchulteGrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@
## 备注

1. 谜题的生成经过算法的控制,答案是确保唯一的。
2. 一个干员可能有不止一个技能在方格中,回答该干员可以多倍得分。
3. 干员选择范围为可获取干员,肉鸽四天王等干员不会成为谜底。
- 如果一个技能被多个干员持有,则这个技能不会出现在图里。
- 所以诸如[冲锋号令β型]等技能不会出现在图里
- 小提示:不是所有[XX型]技能都是多人持有哦。
- 如果一个技能包含另一个技能,比较长的那个技能就会被剔除。
- 比如临光的[急救模式]包含了塞雷娅的[急救]
- 因此为了保证答案的唯一性,现在版本的谜题中,[急救模式][碎甲击扩散][活力再生广域][安眠旋律][剑雨滂沱]这几个技能不会出现图里。
2. 技能名中的点号“·”,波折号,引号等标点符号均被删除。
3. 一个干员可能有不止一个技能在方格中,回答该干员可以多倍得分。
4. 干员选择范围为可获取干员,肉鸽四天王等干员不会成为谜底。

## 计分规则

Expand Down
2 changes: 1 addition & 1 deletion src/desktop/components/PlayerRanking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function gameInfoListener(response: SignalrResponse) {
if(!response.PlayerList) return
console.log('ranking updated')
//console.log('ranking updated')
players.value = response.PlayerList.map((p: any) => {
return {
Expand Down
1 change: 1 addition & 0 deletions src/desktop/views/game/CypherChallenge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function prepareNextQuestion() {

function moveToNextQuestion() {
settlementDialogShown.value = false
settlementCountdownActive.value = true
}

function sendMove(content: string) {
Expand Down
6 changes: 3 additions & 3 deletions src/mobile/views/game/CypherChallenge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ const game = ref<any>()
const roomId = Array.isArray(route.params.roomId) ? route.params.roomId.join(',') : route.params.roomId
const base = ref()
const hit = ref()
const countdown = ref()

const settlementDialogShown = ref(false)
const settlementCountdownActive = ref(false)
Expand Down Expand Up @@ -144,18 +143,19 @@ function closeResultPopup() {
}

function prepareNextQuestion() {
console.log('prepareNextQuestion enter')
if (settlementCountdownActive.value == true) {
return
}
settlementDialogShown.value = true
countdown.value?.reset()
settlementCountdownActive.value = true
console.log('prepareNextQuestion exit')
}

function moveToNextQuestion() {
settlementDialogShown.value = false
settlementCountdownActive.value = false

console.log('moveToNextQuestion')
}

function onFaceHit(face: HitType, chat: string) {
Expand Down
5 changes: 4 additions & 1 deletion src/universal/components/NextQuestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const rallyPointHistory = ref<any[] | null>(null)
watch(computed(() => props.active), (newVal, oldVal) => {
clockActive.value = newVal
console.log('props.active changed', newVal, oldVal)
if (newVal) {
countdown.value.reset()
}
Expand Down Expand Up @@ -138,20 +139,22 @@ function rallyPointReachedListener(response: SignalrResponse) {
return
}
clockActive.value = false
console.log('rally reached', response)
console.log('rally reached, clock deactive', response)
moveToNextQuestion()
}
function moveToNextQuestion() {
playersReadyList.value = []
console.log('NextQuestion moveToNextQuestion 1')
// if (game.value.QuestionList.length > game.value.CurrentQuestionIndex) {
// currentQuestionIndex.value = game.value.CurrentQuestionIndex
// }
// 因为这里立即为CurrentIndex加了1,所以后续RallyPointReach也不会再次触发了
currentQuestionIndex.value = currentQuestionIndex.value! + 1
if (currentQuestionIndex.value !== null) {
console.log('NextQuestion moveToNextQuestion 2')
emits('onNextQuestion')
}
}
Expand Down

0 comments on commit e881f8e

Please sign in to comment.