Skip to content

Add Raid card#139

Merged
iqnite merged 4 commits into
mainfrom
iqnite/issue132
May 16, 2026
Merged

Add Raid card#139
iqnite merged 4 commits into
mainfrom
iqnite/issue132

Conversation

@iqnite
Copy link
Copy Markdown
Owner

@iqnite iqnite commented May 15, 2026

Resolves #132

Tests:

  • Normal
  • Nope timeout
  • Card 1 timeout
  • Card 2 timeout
  • Not enough cards

@iqnite iqnite added enhancement New feature or request cards Gameplay or card mechanics labels May 15, 2026
@iqnite iqnite self-assigned this May 15, 2026
@iqnite iqnite marked this pull request as ready for review May 16, 2026 08:40
Copilot AI review requested due to automatic review settings May 16, 2026 08:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new "Raid" card that lets the current player steal a random card from an opponent after that opponent hides 2 of their own cards. The change wires up the card's effect, registers it in the card dispatch table, declares its metadata, adds the necessary message strings, and rebalances several deck recipes to include it.

Changes:

  • Implement raid, raid_begin, and raid_choose_cards flow in eggsplode/cards/steal.py, extending steal_finish with a cards_to_restore parameter so hidden cards return to the target's hand after the steal.
  • Declare the raid card in cards.json, register it in cards/__init__.py, and add before_raid, raid_prompt, and stolen_card_public_raid_timeout strings (plus a reworded no_cards_to_steal).
  • Distribute Raid copies across several recipes in recipes.json, partially displacing existing food cards.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
eggsplode/cards/steal.py Implements the Raid flow and extends steal_finish to restore hidden cards.
eggsplode/cards/init.py Imports and registers raid in the card-action dispatch.
resources/cards.json Declares the new Raid card metadata.
resources/messages.json Adds prompts/timeout text for Raid and reworks the no-cards-to-steal message to use mentions.
resources/recipes.json Rebalances multiple recipes to include Raid.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread eggsplode/cards/steal.py Outdated
@iqnite iqnite merged commit 5685d6a into main May 16, 2026
5 checks passed
@iqnite iqnite deleted the iqnite/issue132 branch May 16, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cards Gameplay or card mechanics enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Raid card

2 participants