Slay the Spire

Slay the Spire

Prune the Pool
49 Comments
JKingJ 12 Mar @ 2:38am 
I think I found a bug/incompatibility. For some reason this mod crashes the game when you get the Match and Keep event. Same applies when playing the Curated Challenge that replaces card rewards with Match and Keep. Something about the buttons on the reward screen.

at PruneThePool.patches.ButtonPatches$GenerateButtons.patch(ButtonPatches.java:28)
at com.megacrit.cardcrawl.screens.CardRewardScreen.open(CardRewardScreen.java:639)
and at com.megacrit.cardcrawl.core.CardCrawlGame.render(CardCrawlGame.java:423)
再见雪豹 9 Nov, 2024 @ 2:43am 
great!
Ripz 31 Oct, 2024 @ 2:11pm 
it be nice to be able to spend a charge to add a pruned card back to the pool.

also if charges were dropped as possible relics instead, it be a lot more balanced with the rest of the game imo
Mavoc 9 Sep, 2024 @ 4:25am 
What about instead of fixing the crash, you just prevent it from happening. Have a minimum number of unblocked cards per rarity and disable the replace button once you get to that point. Another thing that would be helpful would be a card counter on the card reward screen that would allow us to see the number of cards left in each rarity pool so we can avoid pruning too many.
candy 7 May, 2024 @ 8:27am 
<3
(Gk) Erasels  [author] 7 May, 2024 @ 5:41am 
All my released mods are in open github repos
https://github.com/erasels/PruneThePool

Just to note though, I know of a way to fix the crash that happens when you prune too many cards, i just didn't like the side effect and decided that I'd just trust in the players. Your solution must be efficient and not advance RNG unduly to be merged.
candy 7 May, 2024 @ 5:13am 
Hi, is this open source? Maybe I could try to fix the bugs with shop and pruning too many cards from a pool.
(Gk) Erasels  [author] 3 May, 2024 @ 2:13am 
Alright, added a little compatibility change. I haven't tested it but it should at least not crash anymore.
Jesus Cat (Fwyrl) 2 May, 2024 @ 6:25pm 
With Risk of Relics, using Artifact of Command, the Executive Card, and the Broken Crown, selecting any card from a reward causes this mod to access past the end of the array (by 1) storing the card reward pool.
(Gk) Erasels  [author] 2 May, 2024 @ 3:32am 
Mmmh, no, that's wrong. You're either running into a mod compatibility issue or the crash has nothing to do with this mod.
Jesus Cat (Fwyrl) 2 May, 2024 @ 1:50am 
This will crash to desktop if the player can select multiple card options from a card reward screen.
Vaartok 25 Apr, 2024 @ 10:20am 
This one just seems like cheating to me, but nicely done anyway. I guess some folks just add too many cards to their game with other mods and end up needing this.
(Gk) Erasels  [author] 26 Jan, 2024 @ 2:56am 
Adding controller support is a massive pain in the behind, so only mouse is supported, sorry about that phylactery.

New update adds ZHS translation thanks to 泡泡茶壶
jalmpitt85 23 Oct, 2023 @ 1:25pm 
I was try find exactly this mod, i really hate my bad luck rng, probably this will be best mod here to play happy
phylactery rich 18 Jul, 2023 @ 1:06pm 
Is there anyway to activate the "Replace" button using a controller? Or is clicking with mouse the only way?
Fenrir 16 Feb, 2023 @ 3:20am 
Could you maybe add card pool infos?
Like "3 rare cards remaining"
That way we could avoid over banning :D
pgames-food 28 Nov, 2022 @ 7:43pm 
this might help too, i still need to try it but seems like it could help:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2814267979
pgames-food 28 Nov, 2022 @ 7:38pm 
hi hammypig there is a mod called oops all rares.
if you can somehow make claw a rare, then i think with a few prunings, you might be able to get a lot of claws for your game :)
hammythepig 28 Nov, 2022 @ 9:40am 
Ah fair enough, I did not read that part my bad.
I was trying to see if I could get a game with only Claw for fun :)
(Gk) Erasels  [author] 27 Nov, 2022 @ 11:53pm 
"It is possible to crash the game if you remove the majority of all cards of a single rarity. This is not really achievable in a standard game, however I advise caution to those who target ban rare or common cards."

I really thought I could just advise caution and bank on people making sensible decisions, apparently I shouldn't have...
hammythepig 27 Nov, 2022 @ 9:21pm 
I'm getting the same problem as others commented, when removing too many cards the game crashes
Блохастый 19 Aug, 2022 @ 1:38pm 
Hi! Ready to share the UI translation into Russian? Please add it to the next update.
wbfw109 16 May, 2022 @ 2:02am 
If remainder of the number of pool is less than 4(?) and I click the "replace", following error occurs. (game will exit)

When I click "replace" button in many times, it occurs.
It looks like the exception is not handled.
https://pastebin.com/vVjm3tn1
Fenrir 21 Apr, 2022 @ 8:43am 
Hi,
i keep getting the error because of too many removed cards.
can you add an check to prevent removing cards if there are only 4 (or 3?) in that card rarity area?
Rave 27 Dec, 2021 @ 5:16am 
I just had a bug when I was on the reward screen of a boss, after clicking on the Prune the Pool icon on the top right to see the list of banned cards, the Reward screen disappeared (when I clicked Return next to the ban list, or clicked the icon again, can't remember which one I used to hide the list, the Reward screen didn't show). There was only the dark overlay on the win background (the one with the opened chest), but not the rewards UI.
Clicking on the Map or Deck icons, or showing the Bann List on/off again didn't help to bringing it back.
(Gk) Erasels  [author] 13 Nov, 2021 @ 12:34pm 
That's very weird, thanks for the report and for looking into it.
旅渚Lastcel 13 Nov, 2021 @ 12:20pm 
Yes, I can see them added into the pruned cards screen, occasionally after I exclude a card. No hurry to fix, I'll try to pay attention to on what occasions that happens and give you further feedback.
(Gk) Erasels  [author] 13 Nov, 2021 @ 10:46am 
Hmm, can you see the additional cards you think it removes in the pruned cards screen?
(the screen that pops up if you click on the pruned cards icon in the top right outside of combat)
旅渚Lastcel 13 Nov, 2021 @ 1:10am 
I don't know why, but this mod sometimes removes extra cards from the card pools besides cards clicked. Maybe that's because I'm running with mods that introduce new cards? Not fully tested though.
Neph 26 Oct, 2021 @ 3:59am 
I see! Thanks for the reply!
(Gk) Erasels  [author] 26 Oct, 2021 @ 12:56am 
You removed too many cards. It's trying to generate new ones but none exist in whatever rarity it's trying to roll.
Neph 25 Oct, 2021 @ 10:21pm 
Hi! My game keeps crashing/hanging whenever I click replace. The number deosnt seem to be constant, sometimes it crashes at the 3rd reroll, sometimes 5th. This is what I got.
https://imgur.com/a/HDplMJZ
HexNL 20 Sep, 2021 @ 6:14pm 
I was searching for something to balance my fun/challenge A20 runs and this mod is perfect for it. Can we have an option that we can toggle on and off so the "remplace" doesnt remove the card for the entire run ? Thanks
(Gk) Erasels  [author] 15 Sep, 2021 @ 2:24pm 
Feel free to post the crashlog and I'd be willing to help you resolve the issue.
Argos 15 Sep, 2021 @ 2:16pm 
Not working, just crashes the game when replace button is pushed
(Gk) Erasels  [author] 4 Sep, 2021 @ 5:49am 
As many cards there are of that tier in your pool - the amount of cards you see in card rewards. (so 3 normally, 4 with question card)

There are around 18 common cards so you may at most 15 common cards.
Emilie Sackenball 4 Sep, 2021 @ 5:01am 
what are the "safe number" of cards you can ban from the pool?
Imakunee 1 Sep, 2021 @ 6:43pm 
Thank you for your work on the mod. BIG fan of the options in the mod config menu! Been looking for a mod like this one.
(Gk) Erasels  [author] 27 Aug, 2021 @ 6:40am 
Hmm, the starting settings I play with are 3 starting, 1 elite and 2 boss charges.
I tend to average 4 charges an act with that, which is pretty decent but still abundant.

If you'd prefer them to be somewhat scarce, set starting charges to 0 so you have to earn them first.
Metam0q 27 Aug, 2021 @ 6:37am 
i think the default settings need to be more balanced. it looks like you'll hardly run out of swaps. can anybody think of better settings?
AvangionQ 26 Aug, 2021 @ 10:54am 
This looks really good!!
(Gk) Erasels  [author] 25 Aug, 2021 @ 11:50pm 
Yep, that'll affect controlled chaos
C-Vale 25 Aug, 2021 @ 10:50pm 
question: if you with the "controlled chaos" modifier and have "completely remove replaced cards" on, will that effect the controlled chaos card spawn? i assume so but im asking just in case
Zu 25 Aug, 2021 @ 9:47pm 
Fun little tool you made there.
pgames-food 25 Aug, 2021 @ 8:09pm 
(i spoke before seeing all the images) :)
pgames-food 25 Aug, 2021 @ 8:07pm 
hi this could be fun, its just like starting a game with a relic with charges (like the one that lets us re-roll a dice to swap a reward screen item) :)

is there any chance of an option, which only has the re-roll and charge, but not the outright ban of cards? (that way it is still random, but also less chance of crashing)
Metam0q 25 Aug, 2021 @ 7:43pm 
interesting idea. might try it out
The Worst 25 Aug, 2021 @ 6:24pm 
Might use this to cut Grand Finale out every time I see it.
aldriedger 25 Aug, 2021 @ 12:07pm 
This is a really cool idea!!!