Add Raid card#139
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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, andraid_choose_cardsflow ineggsplode/cards/steal.py, extendingsteal_finishwith acards_to_restoreparameter so hidden cards return to the target's hand after the steal. - Declare the
raidcard incards.json, register it incards/__init__.py, and addbefore_raid,raid_prompt, andstolen_card_public_raid_timeoutstrings (plus a rewordedno_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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #132
Tests: