Let players compare card stats in the collection, rebalance card profiles with a full refunded reset of upgrades, and fix best boosts that sometimes fired in the previous zone
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 25m4s
Validate and deploy Sokko G / deploy (push) Successful in 18s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-04 23:17:23 +01:00
parent 4a44306e30
commit 3590df5e1e
31 changed files with 1515 additions and 211 deletions

View file

@ -13,7 +13,7 @@
* @see docs/expeditions/equilibrage.md
*/
import { allocationError, awakeningPower, awakeningsAhead, cardExpeditionData, clampAllocation, editionExpeditionData, fieldXpPct, gainProgress, levelPoints, maxLevel, maxStatPoints, PLAN_IDS, planStats, SHOP_ITEM_PRICES, splitPower, STAT_IDS, upgradeCost, VOCATION_IDS } from "./expedition-rules.js";
import { allocationError, awakeningPower, awakeningsAhead, clampAllocation, editionExpeditionData, fieldXpPct, gainProgress, levelPoints, maxLevel, maxStatPoints, PLAN_IDS, planStats, SHOP_ITEM_PRICES, splitPower, STAT_IDS, upgradeCost, VOCATION_IDS } from "./expedition-rules.js";
function fail(status, code, message) {
throw Object.assign(new Error(message), { status, code });
@ -77,7 +77,8 @@ export const progressMethods = {
* gratuit tant que la carte suit sa collection, ou en libre sans aucun point placé (après une réinitialisation).
*/
planView(data, progress, settings) {
const profile = cardExpeditionData(this.cards.catalog, data.cardId).profile;
// Le profil de l'édition : une mythique peut avoir le sien (editionExpeditionData).
const { profile } = data;
const points = levelPoints(data.rarity, data.level, settings);
const plan = progress.plan ?? "collection";
const preview = (id) => planStats(data.rarity, data.level, profile, { plan: id }, settings);