Quiiz system

This commit is contained in:
2026-07-26 16:46:41 +02:00
parent 7f17d69f5c
commit 4780016980
192 changed files with 15031 additions and 566 deletions
+6
View File
@@ -19,6 +19,9 @@ XP_PROJECT = 15
XP_GIST = 5
XP_UPVOTE = 5
XP_FOLLOW = 5
XP_QUIZ = 8
XP_QUIZ_PUBLISH = 12
XP_QUIZ_COMPLETE = 4
def level_for_xp(xp: int) -> int:
@@ -195,6 +198,9 @@ ACHIEVEMENTS = {
"defense_upgraded": [(1, "Fort Knox")],
"cosmetic_bought": [(1, "Style Points")],
"underdog_raid": [(1, "David vs Goliath")],
"quiz_publish": [(1, "Quiz Author"), (10, "Quiz Master")],
"quiz_complete": [(1, "Quiz Taker"), (25, "Quiz Regular")],
"quiz_perfect": [(1, "Flawless")],
}
UNIQUE_ACTIONS = {"docs.read"}