mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 09:31:59 +00:00
Enhance achievements: Add continent knowledge achievements and track progress for correct answers in FlagQuiz
This commit is contained in:
@@ -224,6 +224,17 @@
|
||||
score.correct++;
|
||||
gameStats.correct++;
|
||||
currentStreak++;
|
||||
|
||||
// Track continent progress for correct answers
|
||||
if (achievementsComponent && currentQuestion.correct?.tags) {
|
||||
const continent = currentQuestion.correct.tags.find(tag =>
|
||||
['Europe', 'Asia', 'Africa', 'North America', 'South America', 'Oceania'].includes(tag)
|
||||
);
|
||||
if (continent) {
|
||||
achievementsComponent.incrementContinentProgress(continent);
|
||||
}
|
||||
}
|
||||
|
||||
// Reset consecutive skips on correct answer
|
||||
if (achievementsComponent) {
|
||||
achievementsComponent.resetConsecutiveSkips();
|
||||
|
||||
Reference in New Issue
Block a user