Explain each score bonus on hover: what triggers it and what it adds
Affinity, each resonance, cohesion, Expertise and the bonus cap now open a tooltip saying what triggered them and how much they add, with the values in force when the result was computed (results store them as bonusPcts; older ones get the explanation without a figure). The departure preview, group cards and return report share the same badges, and cohesion now shows in the report too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9802db816e
commit
45d9180ed1
8 changed files with 61 additions and 21 deletions
|
|
@ -331,6 +331,8 @@ export class ExpeditionService {
|
|||
synergyPct: evaluation.synergyPct,
|
||||
// Somme des bonus avant leur plafond : l'interface signale la part absorbée.
|
||||
synergyRawPct: synergy?.rawPct ?? evaluation.synergyPct,
|
||||
// Valeur de chaque sorte de bonus au moment du calcul, pour l'expliquer au survol.
|
||||
bonusPcts: { affinity: this.settings.synergy.affinityPct, resonance: this.settings.synergy.resonancePct, cap: this.settings.score.synergyCapPct },
|
||||
expertise: (evaluation.expertise || []).map((item) => ({ stat: item.stat, cardId: item.cardId })),
|
||||
expertisePct: evaluation.expertisePct ?? 0,
|
||||
attunement: evaluation.attunement ?? [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue