Add solo Expeditions, the second Guilde des Veilleurs quest of Sokko TCG
- Every catalog card carries expedition tags and every collection a stat profile, validated at load; twelve destinations live server-side so hidden ones stay secret. - Pure rules compute card power, per-slot requirements, roles, dangers, the long-trip malus, the score (one more star never raises it) and loot proportional to the chosen duration. - A simulator script and a balance test guard the design thresholds; agent docs and a new-card skill explain how to tag new cards. - Migration 8 adds Éclats d'étoile, expedition settings stored as one validated JSON, daily destinations, expeditions, members and slots, and rebuilds gift_packs so a pack can come from an expedition. - Players launch a solo expedition from the Guild, see an exact preview, and claim their loot when it returns; the card sheet shows cards away on an expedition. - Administration › Guilde tunes every value with server-side bounds, toggles destinations and cancels running expeditions; expeditions stay closed until an administrator opens them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0ef213cf4f
commit
8bb1d53d70
46 changed files with 4752 additions and 213 deletions
|
|
@ -494,7 +494,7 @@ test("duplicates become stardust that buys openings kept apart from the recharge
|
|||
const value = INITIAL_SHOP_SETTING.stardustValues[rarity];
|
||||
|
||||
const before = service.getState(player.id);
|
||||
assert.deepEqual(before.wallet, { stardust: 0, purchasedOpenings: 0 });
|
||||
assert.deepEqual(before.wallet, { stardust: 0, purchasedOpenings: 0, eclats: 0 });
|
||||
assert.deepEqual(before.shop, { stardustValues: INITIAL_SHOP_SETTING.stardustValues, openingPrice: INITIAL_SHOP_SETTING.openingPrice, shopPackPrice: 60, shopPackShare: 50, dailyReward: 10 });
|
||||
assert.deepEqual(before.recycling, { count: 2, stardust: 2 * value });
|
||||
// Une favorite garde son exemplaire : ses doublons se recyclent comme les autres.
|
||||
|
|
@ -520,7 +520,7 @@ test("duplicates become stardust that buys openings kept apart from the recharge
|
|||
// Vide les ouvertures de bienvenue restantes sans changer la collection vérifiée plus bas.
|
||||
database.db.prepare("UPDATE players SET openings_balance = 0 WHERE id = ?").run(player.id);
|
||||
const bought = service.buyOpening(player.id);
|
||||
assert.deepEqual(bought.wallet, { stardust: 0, purchasedOpenings: 1 });
|
||||
assert.deepEqual(bought.wallet, { stardust: 0, purchasedOpenings: 1, eclats: 0 });
|
||||
assert.throws(() => service.buyOpening(player.id), /Pas assez/);
|
||||
|
||||
// La réserve est vide : seule l'ouverture achetée permet d'ouvrir, sans toucher à la réserve.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue