Bring back objects from Sokko TCG Expeditions and open bonus and hidden destinations
- Expeditions bring back objects by weight, proportional to the loot; treasure-map fragments, burins and workshop plans need enough average Orientation. - A guide star adds a fifth destination to the player's day, a sky chart a sixth with richer loot, and enough fragments open one of two hidden destinations: Le Passage Écarlate and L'Observatoire perdu. - An anchor recalls a running solo expedition and keeps the Éclats and stardust already earned; a burin engraves a tag on a common to create the synergy a player wants. - The Veilleur's bag lists objects with their use, reports show brought-back objects, and Administration › Guilde tunes object chances, weights, the Orientation threshold and hidden-destination loot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
320498d878
commit
ae23adfdd9
28 changed files with 532 additions and 73 deletions
|
|
@ -203,6 +203,20 @@ Expéditions (migration 8, règles pures dans `services/cards/expedition-rules.j
|
|||
numérique) reçoivent des alertes ; le réglage `alerts.enabled` les coupe toutes. Les lignes envoyées
|
||||
ou abandonnées sont purgées après 30 jours ; un compte supprimé perd ses choix et sa file.
|
||||
`getState().alerts` vaut `{ available, groupOpened, expeditionReturned }`.
|
||||
- Objets (migration 12, `services/cards/expedition-items.js`) : `player_items(player_id, item_id, quantity)`
|
||||
pour `fragment`, `engraving`, `plan`, `anchor`, `guideStar` et `skyChart`. Une expédition en rapporte
|
||||
au départ (`reward_json.items`, crédités au retour) : chance `items.chancePerHourPermille` par heure,
|
||||
multipliée comme le butin, au plus `items.maxPerExpedition` ; fragments, burins et plans demandent
|
||||
une Orientation moyenne par place d'au moins `items.orientationPerSlot`, et le plan attend l'atelier.
|
||||
`player_bonus_destinations(player_id, day, slot, destination_id, created_at)` : `POST
|
||||
/api/cards/expeditions/bonus` (`{ item }`) ajoute pour la journée une 5e destination (`guideStar`),
|
||||
une 6e (`skyChart`, butin `loot.bonusSlotPct`) ou une destination cachée (`fragment` ×
|
||||
`items.fragmentsForMap`, butin `items.hiddenLootPct`) ; `BONUS_ALREADY_USED`, `BONUS_UNAVAILABLE`,
|
||||
`NOT_ENOUGH_ITEMS`. `setup_json.bonusSlot` garde la place. `POST /api/cards/expeditions/:id/recall`
|
||||
(ancre, solo) fait revenir l'expédition et garde Éclats et poussière au prorata (`reward_json.recalledPct`).
|
||||
`equipment_engravings(player_id, edition_id, tag, engraved_at)` : `POST /api/cards/equipment/engrave`
|
||||
(`{ editionId, tag }`, burin) ajoute une étiquette à une commune, une seule fois. `item_used` entre
|
||||
dans l'historique ; `getState().items` donne l'inventaire.
|
||||
- `POST /api/cards/admin/expeditions/:id/cancel` : libère les cartes sans butin ; `expedition_cancelled`
|
||||
côté administration, `expedition_cancelled_by_guild` dans l'historique du joueur.
|
||||
- `getState().expeditions` : résumé pour la tuile de la Guilde et la fiche de carte (ouverture, en
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue