Add the recruitment screen of the daily team
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
71cf739a2e
commit
08c3c8f6a2
18 changed files with 654 additions and 3 deletions
|
|
@ -95,6 +95,27 @@ export function guessDaily(day, cardId) {
|
|||
return request("/daily/guesses", { method: "POST", body: JSON.stringify({ day, cardId }) });
|
||||
}
|
||||
|
||||
export function loadTeam() {
|
||||
return request("/team");
|
||||
}
|
||||
|
||||
// Un recrutement vaut pour le jour affiché, comme un essai de la Carte du jour.
|
||||
export function recruitTeam(day) {
|
||||
return request("/team/recruit", { method: "POST", body: JSON.stringify({ day }) });
|
||||
}
|
||||
|
||||
export function chooseTeamCharacter(cardId) {
|
||||
return request("/team/choose", { method: "POST", body: JSON.stringify({ cardId }) });
|
||||
}
|
||||
|
||||
export function revealTeamStar(index) {
|
||||
return request("/team/stars", { method: "POST", body: JSON.stringify({ index }) });
|
||||
}
|
||||
|
||||
export function keepTeamCompanion(cardId) {
|
||||
return request("/team/keep", { method: "POST", body: JSON.stringify({ cardId }) });
|
||||
}
|
||||
|
||||
// Récompense d'une victoire : "stardust" ou "star" (moins de poussière et une étoile dorée).
|
||||
export function chooseDailyReward(day, choice) {
|
||||
return request("/daily/reward", { method: "POST", body: JSON.stringify({ day, choice }) });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue