feat: Phase 3 — polish & settings complete
Card pool: - TOTW cards (5): overall 88-92, rarity "totw" - Hero cards (5): overall 85-88, rarity "hero" - Icon cards (5): overall 93-95, rarity "icon" (permanent, non-loan) Packs: - TOTW Pack (30,000 coins): 5 TOTW cards guaranteed - Icon Pack (50,000 coins): 3 icon cards guaranteed - Hero Pack (20,000 coins): 5 hero cards guaranteed Objectives: - Milestone objectives (6): win 10/50, score 100/500 goals, 10 SBCs, 25 packs Formations: - GET /formations returns 12 valid formation strings Multiple named squads (#20): - POST /squad with no squad_id always creates a new squad - POST /squad with squad_id updates that specific squad - GET /squads: list all squads for the club (metadata only) - GET /squads/🆔 squad with players + chemistry - DELETE /squads/🆔 remove a squad Per-position goal stats (#41): - Migration 0003: position_goals table - POST /matches/result accepts optional goal_positions: ["ST","CAM",...] - GET /statistics now includes position_goals map Settings (#44-46): - GET /settings: { difficulty, preferred_formation } with defaults - PUT /settings: upsert any key-value combination Draft mode skeleton (#38): - GET /draft/squad?difficulty=... returns a randomly generated 11-player squad Integration tests: - 9 new tests covering: formations, pack buy/open, SBC submit, settings R/W, multiple squads, draft endpoint, goal position tracking, win streak Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{ "id": "card_hero_001", "name": "El Centrodelantero", "overall": 87, "position": "ST", "nation": "Spain", "league": "La Liga", "club": "Atletico Madrid", "pace": 84, "shooting": 88, "passing": 74, "dribbling": 83, "defending": 38, "physical": 80, "rarity": "hero", "image_path": null },
|
||||
{ "id": "card_hero_002", "name": "The Playmaker", "overall": 86, "position": "CAM", "nation": "Netherlands", "league": "Eredivisie", "club": "Ajax", "pace": 78, "shooting": 79, "passing": 90, "dribbling": 88, "defending": 50, "physical": 65, "rarity": "hero", "image_path": null },
|
||||
{ "id": "card_hero_003", "name": "Il Muro", "overall": 88, "position": "CB", "nation": "Italy", "league": "Serie A", "club": "Juventus", "pace": 80, "shooting": 42, "passing": 72, "dribbling": 70, "defending": 91, "physical": 90, "rarity": "hero", "image_path": null },
|
||||
{ "id": "card_hero_004", "name": "The Enforcer", "overall": 85, "position": "CDM", "nation": "Nigeria", "league": "Premier League", "club": "Chelsea", "pace": 76, "shooting": 60, "passing": 80, "dribbling": 75, "defending": 89, "physical": 88, "rarity": "hero", "image_path": null },
|
||||
{ "id": "card_hero_005", "name": "El Expreso", "overall": 87, "position": "LB", "nation": "Brazil", "league": "Brasileirao", "club": "Santos FC", "pace": 90, "shooting": 60, "passing": 82, "dribbling": 85, "defending": 88, "physical": 78, "rarity": "hero", "image_path": null }
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{ "id": "card_icon_001", "name": "The Golden Boot", "overall": 95, "position": "ST", "nation": "Brazil", "league": "Icons", "club": "Icons", "pace": 92, "shooting": 96, "passing": 82, "dribbling": 93, "defending": 40, "physical": 84, "rarity": "icon", "image_path": null },
|
||||
{ "id": "card_icon_002", "name": "The Maestro (Permanent)", "overall": 94, "position": "CAM", "nation": "Argentina", "league": "Icons", "club": "Icons", "pace": 80, "shooting": 88, "passing": 96, "dribbling": 95, "defending": 55, "physical": 68, "rarity": "icon", "image_path": null },
|
||||
{ "id": "card_icon_003", "name": "The Wall", "overall": 94, "position": "GK", "nation": "Germany", "league": "Icons", "club": "Icons", "pace": 56, "shooting": 18, "passing": 76, "dribbling": 52, "defending": 96, "physical": 88, "rarity": "icon", "image_path": null },
|
||||
{ "id": "card_icon_004", "name": "The General", "overall": 93, "position": "CB", "nation": "France", "league": "Icons", "club": "Icons", "pace": 84, "shooting": 48, "passing": 80, "dribbling": 78, "defending": 95, "physical": 92, "rarity": "icon", "image_path": null },
|
||||
{ "id": "card_icon_005", "name": "El Capitán", "overall": 95, "position": "CM", "nation": "Spain", "league": "Icons", "club": "Icons", "pace": 82, "shooting": 86, "passing": 95, "dribbling": 90, "defending": 80, "physical": 80, "rarity": "icon", "image_path": null }
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{ "id": "card_totw_001", "name": "Gabriel Monteiro TOTW", "overall": 91, "position": "ST", "nation": "Brazil", "league": "Brasileirao", "club": "Flamengo", "pace": 94, "shooting": 92, "passing": 80, "dribbling": 89, "defending": 44, "physical": 84, "rarity": "totw", "image_path": null },
|
||||
{ "id": "card_totw_002", "name": "Antoine Mercier TOTW", "overall": 89, "position": "CM", "nation": "France", "league": "Ligue 1", "club": "Paris Saint-Germain", "pace": 83, "shooting": 81, "passing": 92, "dribbling": 87, "defending": 76, "physical": 78, "rarity": "totw", "image_path": null },
|
||||
{ "id": "card_totw_003", "name": "Sven Bauer TOTW", "overall": 90, "position": "CB", "nation": "Germany", "league": "Bundesliga", "club": "Bayer Leverkusen", "pace": 84, "shooting": 47, "passing": 78, "dribbling": 74, "defending": 92, "physical": 91, "rarity": "totw", "image_path": null },
|
||||
{ "id": "card_totw_004", "name": "Nicolás Paredes TOTW", "overall": 92, "position": "LW", "nation": "Argentina", "league": "Primera Division", "club": "Boca Juniors", "pace": 95, "shooting": 88, "passing": 84, "dribbling": 93, "defending": 47, "physical": 74, "rarity": "totw", "image_path": null },
|
||||
{ "id": "card_totw_005", "name": "Jin-Ho Lee TOTW", "overall": 88, "position": "RW", "nation": "South Korea", "league": "Bundesliga", "club": "RB Leipzig", "pace": 93, "shooting": 84, "passing": 80, "dribbling": 91, "defending": 45, "physical": 68, "rarity": "totw", "image_path": null }
|
||||
]
|
||||
@@ -0,0 +1,68 @@
|
||||
[
|
||||
{
|
||||
"id": "milestone_10_wins",
|
||||
"title": "First Champion",
|
||||
"description": "Win 10 matches total.",
|
||||
"objective_type": "milestone",
|
||||
"metric": "matcheswon",
|
||||
"target": 10,
|
||||
"reward_coins": 2000,
|
||||
"reward_pack_id": null,
|
||||
"reward_xp": 500
|
||||
},
|
||||
{
|
||||
"id": "milestone_50_wins",
|
||||
"title": "Seasoned Winner",
|
||||
"description": "Win 50 matches total.",
|
||||
"objective_type": "milestone",
|
||||
"metric": "matcheswon",
|
||||
"target": 50,
|
||||
"reward_coins": 10000,
|
||||
"reward_pack_id": "gold_pack",
|
||||
"reward_xp": 2500
|
||||
},
|
||||
{
|
||||
"id": "milestone_100_goals",
|
||||
"title": "Century Scorer",
|
||||
"description": "Score 100 goals total.",
|
||||
"objective_type": "milestone",
|
||||
"metric": "goalsscored",
|
||||
"target": 100,
|
||||
"reward_coins": 5000,
|
||||
"reward_pack_id": null,
|
||||
"reward_xp": 1000
|
||||
},
|
||||
{
|
||||
"id": "milestone_500_goals",
|
||||
"title": "Goal Machine Legend",
|
||||
"description": "Score 500 goals total.",
|
||||
"objective_type": "milestone",
|
||||
"metric": "goalsscored",
|
||||
"target": 500,
|
||||
"reward_coins": 25000,
|
||||
"reward_pack_id": "rare_gold_pack",
|
||||
"reward_xp": 5000
|
||||
},
|
||||
{
|
||||
"id": "milestone_10_sbcs",
|
||||
"title": "SBC Aficionado",
|
||||
"description": "Complete 10 Squad Building Challenges.",
|
||||
"objective_type": "milestone",
|
||||
"metric": "sbcscompleted",
|
||||
"target": 10,
|
||||
"reward_coins": 3000,
|
||||
"reward_pack_id": "silver_pack",
|
||||
"reward_xp": 750
|
||||
},
|
||||
{
|
||||
"id": "milestone_25_packs",
|
||||
"title": "Pack Addict",
|
||||
"description": "Open 25 packs.",
|
||||
"objective_type": "milestone",
|
||||
"metric": "packsopened",
|
||||
"target": 25,
|
||||
"reward_coins": 5000,
|
||||
"reward_pack_id": null,
|
||||
"reward_xp": 1500
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"id": "totw_pack",
|
||||
"name": "TOTW Pack",
|
||||
"description": "Contains 5 Team of the Week cards.",
|
||||
"cost_coins": 30000,
|
||||
"slots": [
|
||||
{
|
||||
"count": 5,
|
||||
"min_overall": 88,
|
||||
"rarity_filter": ["totw"],
|
||||
"guaranteed_rare": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "icon_pack",
|
||||
"name": "Icon Pack",
|
||||
"description": "Contains 3 legendary Icon cards.",
|
||||
"cost_coins": 50000,
|
||||
"slots": [
|
||||
{
|
||||
"count": 3,
|
||||
"min_overall": 93,
|
||||
"rarity_filter": ["icon"],
|
||||
"guaranteed_rare": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "hero_pack",
|
||||
"name": "Hero Pack",
|
||||
"description": "Contains 5 Hero cards.",
|
||||
"cost_coins": 20000,
|
||||
"slots": [
|
||||
{
|
||||
"count": 5,
|
||||
"min_overall": 85,
|
||||
"rarity_filter": ["hero"],
|
||||
"guaranteed_rare": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user