Add the daily team administration, recruitment retouches, the Watchers' balm and a new Guild layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7ed63fff49
commit
b179a40a04
36 changed files with 799 additions and 298 deletions
|
|
@ -346,6 +346,15 @@ export function createCardsApiHandler({
|
|||
json(res, 200, service.team.startRecruitment(session.player.id, { day: (await readBody(req)).day }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/team/reset") {
|
||||
json(res, 200, service.team.resetForTests(session.player.id));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/team/reroll") {
|
||||
rateLimit(req, "team-reroll", 60);
|
||||
json(res, 200, service.team.rerollOffer(session.player.id, { offer: (await readBody(req)).offer }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/team/choose") {
|
||||
rateLimit(req, "team-choose", 60);
|
||||
json(res, 200, service.team.chooseCharacter(session.player.id, { cardId: (await readBody(req)).cardId }));
|
||||
|
|
@ -356,6 +365,11 @@ export function createCardsApiHandler({
|
|||
json(res, 200, service.team.revealStar(session.player.id, { index: (await readBody(req)).index }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/team/heal") {
|
||||
rateLimit(req, "team-heal", 60);
|
||||
json(res, 200, service.team.healCompanion(session.player.id, { cardId: (await readBody(req)).cardId }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/team/keep") {
|
||||
rateLimit(req, "team-keep", 60);
|
||||
json(res, 200, service.team.keepCompanion(session.player.id, { cardId: (await readBody(req)).cardId }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue