mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 02:11:58 +02:00
65a0cb46f9
Phase "score et récompenses" of the post-0.1.0 plan (user feedback: wants a more game-like experience with scoring and rewards). - MissionScoring: 1-3 stars from how each exercise was solved (never speed; a finished mission always gives at least one star). - Save schema v2: mission_results (best/last stars, completions) with a v1->v2 migration that keeps existing stars and items. - Total only grows by the improvement over a mission's best score. - Data-driven collection (data/rewards, reward_item schema, validated incl. mission cross-check) unlocked by RewardRules. - Reward screen, collection screen, stars on the world map. - Version 0.2.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
768 B
JSON
22 lines
768 B
JSON
{
|
|
"type": "object",
|
|
"required": ["item_id", "title", "description", "unlock", "review_status"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"item_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" },
|
|
"title": { "type": "string", "minLength": 1 },
|
|
"description": { "type": "string", "minLength": 1 },
|
|
"unlock": {
|
|
"type": "object",
|
|
"required": ["type", "count"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"type": { "type": "string", "enum": ["total_stars", "mission_stars"] },
|
|
"count": { "type": "integer", "minimum": 1 },
|
|
"mission_id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }
|
|
}
|
|
},
|
|
"review_status": { "type": "string", "enum": ["draft", "validated"] }
|
|
}
|
|
}
|