Make one expedition at a time a fixed rule so older stored settings cannot raise it
The limit was a setting whose default had moved to one, but settings saved before still allowed two expeditions per player. It is now a game rule: the setting and its admin field are gone, an old stored value has no effect, and the refusal tells the player to claim their current expedition first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3720fd01f7
commit
a38d4fd02a
7 changed files with 19 additions and 16 deletions
|
|
@ -193,9 +193,9 @@ Expéditions (migration 8, règles pures dans `services/cards/expedition-rules.j
|
|||
- `POST /api/cards/expeditions` (`Idempotency-Key`, `{ day, destinationId, durationHours, editionId }` ;
|
||||
une `difficulty` envoyée est ignorée, les étoiles viennent du niveau) ouvre l'expédition au tableau (voir
|
||||
« Ouverture et départ ») : `EXPEDITIONS_CLOSED`, `EXPEDITION_DAY_EXPIRED`, `EXPEDITION_INVALID`,
|
||||
`EXPEDITION_CARD_INVALID`, `CARD_NOT_OWNED`, `EXPEDITION_CARD_BUSY`, `EXPEDITION_LIMIT` (au plus
|
||||
`group.maxConcurrent` expéditions ouvertes ou en route par joueur, une par défaut : la préparation revient
|
||||
quand le butin est récupéré). Avec `departNow: true`, l'expédition part aussitôt, seule, sans alerte
|
||||
`EXPEDITION_CARD_INVALID`, `CARD_NOT_OWNED`, `EXPEDITION_CARD_BUSY`, `EXPEDITION_LIMIT` (une seule
|
||||
expédition ouverte, rejointe ou en route par joueur, règle fixe `MAX_ACTIVE_EXPEDITIONS` et non un réglage :
|
||||
la préparation revient quand le butin est récupéré). Avec `departNow: true`, l'expédition part aussitôt, seule, sans alerte
|
||||
d'ouverture.
|
||||
- `POST /api/cards/expeditions/:id/claim` : idempotent ; `EXPEDITION_NOT_FOUND`,
|
||||
`EXPEDITION_NOT_RETURNED`. Inscrit `expedition_completed` dans l'historique du joueur.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue