Show the enchanted cards Mystic Lighter boosts, including in the shop #341

Merged
nelsong6 merged 3 commits from claude/enchanted-attack-definition-e2e1a9 into main 2026-10-10 21:04:51 -07:00
nelsong6 commented 2026-10-10 21:03:14 -07:00 (Migrated from github.com)

Mystic Lighter adds damage to powered attack hits from any enchanted card, so its value depends entirely on the buyer's current deck — information the relic's own tooltip never shows, and which matters most before you pay for it.

The SpireLens tooltip now shows:

  • Enchanted in deck — every deck card carrying an enchantment, using the relic's own cardSource.Enchantment != null check.
  • One Boosted row per enchanted Attack, with its title and enchantment (e.g. Solar Strike+ (Glam)), matching how Gnarled Hammer and Tri-Boomerang list individual cards.

It appears both for the owned relic, which had no SpireLens panel at all before, and for the relic while it is still for sale. Shop slots (NMerchantRelic) now get a SpireLens panel; the relic has no owner before purchase, so the deck is read from the merchant entry's own player. Mystic Lighter is the only relic with a shop panel.

Counts are read at hover time, so they stay current as cards are enchanted. Nothing is persisted, so there is no schema change.

Note on "Attack": the game decides per damage instance (ValueProp.Move set, Unpowered clear), not per card type, so the listed rows are the normal case rather than an exact prediction.

Tests and live behavioral verification were not run, per the repo's user-owned verification rule. The change was built, deployed and hot-reloaded into the running game while it was developed.

Mystic Lighter adds damage to powered attack hits from any enchanted card, so its value depends entirely on the buyer's current deck — information the relic's own tooltip never shows, and which matters most before you pay for it. The SpireLens tooltip now shows: - **Enchanted in deck** — every deck card carrying an enchantment, using the relic's own `cardSource.Enchantment != null` check. - One **Boosted** row per enchanted Attack, with its title and enchantment (e.g. `Solar Strike+ (Glam)`), matching how Gnarled Hammer and Tri-Boomerang list individual cards. It appears both for the owned relic, which had no SpireLens panel at all before, and for the relic while it is still for sale. Shop slots (`NMerchantRelic`) now get a SpireLens panel; the relic has no owner before purchase, so the deck is read from the merchant entry's own player. Mystic Lighter is the only relic with a shop panel. Counts are read at hover time, so they stay current as cards are enchanted. Nothing is persisted, so there is no schema change. Note on "Attack": the game decides per damage instance (`ValueProp.Move` set, `Unpowered` clear), not per card type, so the listed rows are the normal case rather than an exact prediction. Tests and live behavioral verification were not run, per the repo's user-owned verification rule. The change was built, deployed and hot-reloaded into the running game while it was developed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!341
No description provided.