Skip to content

Add bulk buy toggle for buildings - #14

Open
matalvernaz wants to merge 1 commit into
FioraXena:mainfrom
matalvernaz:feature/bulk-buy
Open

Add bulk buy toggle for buildings#14
matalvernaz wants to merge 1 commit into
FioraXena:mainfrom
matalvernaz:feature/bulk-buy

Conversation

@matalvernaz

Copy link
Copy Markdown

Summary

  • Adds x1/x10/x100/Max bulk buy toggle above the buildings section
  • Correctly calculates geometric series costs for bulk purchases
  • Building buttons update labels and costs based on selected amount
  • Full keyboard navigation with ARIA radiogroup pattern

Closes #5

Test plan

  • Toggle between x1, x10, x100, Max — verify costs update
  • Buy x10 of a building — verify 10 are purchased and correct Mana deducted
  • Use Max — verify it buys the maximum affordable amount
  • Verify keyboard navigation works (Tab between buttons, Enter to select)
  • Verify screen reader announces "Buy x10 Wizard's Hand, costs X Mana"

🤖 Generated with Claude Code

Adds a radiogroup of bulk buy buttons above the buildings section that
lets players purchase multiple buildings at once. Costs are calculated
using the geometric series, building displays and affordability checks
reflect the selected bulk amount, and screen reader announcements
include the quantity purchased.

Closes FioraXena#5

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 bulk buy toggle for buildings (x1/x10/x100/Max)

1 participant