Add a loot legend, a foldable Watcher's bag and a mythic halo, and move card sheet and power texts to site.json

- The destinations step opens with a legend of the four loots and what the
  green and red arrows mean.
- The Watcher's bag folds into a strip of item art and counts; the choice is
  kept by the browser.
- Mythic cards wear a slowly turning prismatic ring across the expedition
  screens; it is visual only.
- The card sheet and the stats distribution read their texts from
  cards.cardSheet, and power descriptions and their figures from
  cards.expeditions.powerText and powerDetails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-18 15:44:44 +01:00
parent 84b0d69b1f
commit 98ffe6562c
20 changed files with 361 additions and 129 deletions

View file

@ -10,7 +10,7 @@ import { fillTemplate } from "./dailyShare.js";
import { ExpeditionCardTile } from "./ExpeditionCardTile.jsx";
import { EquipmentPicker, EquipmentSlots, PowerTooltipContent } from "./ExpeditionEquipmentSlots.jsx";
import { CardSheet, EngraveModal } from "./ExpeditionImprove.jsx";
import { editionEntry, formatDecimal, helpScore, POWER_TEXT, powerDetails, STAT_IDS, tagColor, tagLabel } from "./expeditionFormat.js";
import { editionEntry, formatDecimal, helpScore, powerDetails, powerText, STAT_IDS, tagColor, tagLabel } from "./expeditionFormat.js";
import { MaskIcon } from "./ExpeditionLabels.jsx";
import { NebulaCard } from "./NebulaCard.jsx";
@ -99,16 +99,16 @@ export function ExpeditionLoadout({ catalog, state, view, destination, card, onC
</li>;
})}</ul>
{card.powers?.length > 0 && <ul className="nebula-expedition-chosen-powers" aria-label={content.chosenPowers}>{card.powers.map((power) => <li key={power}>
<Tooltip className="nebula-equipment-power" tooltipClassName="nebula-power-tooltip" content={<PowerTooltipContent power={power} values={view.powers} />}
aria-label={[`${content.powers[power]} : ${POWER_TEXT[power]}`, ...powerDetails(power, view.powers)].join(" ; ")} tabIndex={0}>
<Tooltip className="nebula-equipment-power" tooltipClassName="nebula-power-tooltip" content={<PowerTooltipContent power={power} values={view.powers} content={content} />}
aria-label={[`${content.powers[power]} : ${powerText(power, content)}`, ...powerDetails(power, view.powers, content)].join(" ; ")} tabIndex={0}>
<MaskIcon name="power" /><span aria-hidden="true">{content.powers[power]}</span>
</Tooltip> {POWER_TEXT[power]}
</Tooltip> {powerText(power, content)}
</li>)}</ul>}
</section>}
</div>
</div>
{picker?.engrave && progress && <EngraveModal catalog={catalog} state={state} view={view} equipmentId={picker.engrave} characterId={progress.editionId} content={content} busy={busy} runMutation={runMutation} onClose={() => setPicker(null)} />}
{picker === "sheet" && card && <CardSheet catalog={catalog} state={state} editionId={card.editionId} busy={busy} runMutation={runMutation} onClose={() => setPicker(null)} />}
{picker === "sheet" && card && <CardSheet catalog={catalog} state={state} editionId={card.editionId} content={content.cardSheet} busy={busy} runMutation={runMutation} onClose={() => setPicker(null)} />}
{picker === "card" && <CardPicker catalog={catalog} view={view} destination={destination} selectedId={card?.editionId} content={content} onChoose={onChooseCard} onClose={() => setPicker(null)} />}
{typeof picker === "number" && progress && <EquipmentPicker catalog={catalog} state={state} progress={progress} cardName={entry?.card.name || ""} slot={picker} content={content}
busy={busy} runMutation={runMutation} onClose={() => setPicker(null)} powerValues={view.powers} />}