Let players choose how their cards spend level points with vocations or free points, and sell the Parchemin d'oubli
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
18bcf435b5
commit
7d331d1a3f
24 changed files with 473 additions and 60 deletions
|
|
@ -365,6 +365,15 @@ export function createCardsApiHandler({
|
|||
json(res, 200, service.expeditions.equip(session.player.id, { editionId: body.editionId, slot: body.slot, equipmentEditionId: body.equipmentEditionId ?? null }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "PUT" && url.pathname === "/api/cards/progress/plan") {
|
||||
const body = await readBody(req);
|
||||
json(res, 200, service.expeditions.setCardPlan(session.player.id, { editionId: body.editionId, plan: body.plan, allocation: body.allocation ?? null }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/shop/oblivion") {
|
||||
json(res, 200, service.expeditions.buyOblivion(session.player.id, { count: (await readBody(req)).count }));
|
||||
return true;
|
||||
}
|
||||
if (req.method === "POST" && url.pathname === "/api/cards/eclats/convert") {
|
||||
json(res, 200, service.expeditions.convertStardust(session.player.id, { eclats: (await readBody(req)).eclats }));
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue