Skip to content

Commit

Permalink
Merge pull request #957 from tsg-ut/nmpz-extend-time-limit
Browse files Browse the repository at this point in the history
nmpz: extended time limit (90s -> 150s)
  • Loading branch information
sh-mug authored Oct 23, 2024
2 parents 04cd116 + 7820583 commit 656668d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nmpz/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ class NmpzAteQuiz extends AteQuiz {
return answer.toLowerCase() === this.problem.answer.toLowerCase();
}

waitSecGen(_hintIndex: number): number {
return 30;
waitSecGen(hintIndex: number): number {
return hintIndex <= this.problem.hintMessages.length - 1 ? 30 : 90;
}
}

Expand Down Expand Up @@ -289,7 +289,7 @@ function problemFormat(
text: `ヒント: 画像の地域は${country.subregion}だよ。`,
},
],
immediateMessage: { channel: CHANNEL, text: "制限時間: 90秒" },
immediateMessage: { channel: CHANNEL, text: "" },
solvedMessage: {
channel: CHANNEL,
text: `<@[[!user]]> 正解!:tada: 正解地点は <${answer_url}|${coordToStr(lat, lng)}> だよ ${emoji}`,
Expand All @@ -309,6 +309,7 @@ function problemFormat(
answer: country.name_official,
correctAnswers: [country.name_official, country.name_common],
};
problem.immediateMessage.text = `制限時間: ${problem.hintMessages.length * 30 + 90}秒`;
return problem;
}

Expand Down

0 comments on commit 656668d

Please sign in to comment.