Skip to content

Add interactive flavor events - #12

Open
matalvernaz wants to merge 1 commit into
FioraXena:mainfrom
matalvernaz:feature/interactive-events
Open

Add interactive flavor events#12
matalvernaz wants to merge 1 commit into
FioraXena:mainfrom
matalvernaz:feature/interactive-events

Conversation

@matalvernaz

Copy link
Copy Markdown

Summary

  • 25% of flavor events are now interactive with clickable action buttons
  • 6 event types: Wandering Merchant, Mana Surge, Ancient Tome, Mysterious Stranger, Crystal Formation, Spell Echo
  • Risk/reward mechanics (some can backfire)
  • Events auto-expire after 30 seconds, results fade after 8 seconds
  • Gold-bordered styling distinguishes interactive events from flavor text

Closes #8

Test plan

  • Wait for an interactive event to appear (gold-bordered with button)
  • Click the action button — verify result text appears
  • Verify result fades after 8 seconds
  • Let an event expire without clicking — verify it fades after 30 seconds
  • Verify interactive event button is keyboard focusable
  • Verify screen reader announces event result via aria-live

🤖 Generated with Claude Code

Introduces 6 interactive event types (Wandering Merchant, Mana Surge,
Ancient Tome, Mysterious Stranger, Crystal Formation, Spell Echo) that
appear with a 25% chance during flavor event cycles. Events feature
clickable action buttons, auto-expire after 30 seconds, and results
fade after 8 seconds. Gold-bordered styling distinguishes them from
regular flavor text. Includes full keyboard and screen reader support.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add interactive flavor events with risk/reward choices

1 participant