This is a fork of both Brainstorm created by OceanRamen as well as Immolate please give credit to them as I have simply modified the hard work they did
This repository houses both the code for the brainstorm mod as well as the code for the C++ version of the Immolate seed finder. If you would like to create your own filters simply add the code to the Immolate.cpp file, update the brainstorm endpoints to include whatever you need and then build it. This will generate a dll that you can then place in the mods folder of balatro. The brainstorm mod will automatically detect the dll and use it, though you will need to update the brainstorm.lua and ui.lua in order to properly use your new options
This mod utilizes an external DLL to perform the seed finding. This DLL is built from the Immolate C++ project in this repository. This comes with some performance gains but also some oddities.
- The DLL will utilize 100% of your CPU if you have 12 or less cores
- The game will look frozen and unresponsive when searching for a seed. If you click on the game windows will say it is not responding
- Some filters can take hours to find a seed depending on your CPU and the filter selected. Please be patient
- Ensure you download Brainstorm.zip if all you want is the mod. The Immolate C++ code is only needed if you want to create custom filters and are familiar with C++
- Lovely injector -- Get it here: https://github.com/ethangreen-dev/lovely-injector/releases
- Install Lovely and follow the manual installation instructions.
- Download the latest release of Brainstorm-Rerolled.
- Unzip the file, and place it in
.../%appdata%/balatro/mods - Reload the game to activate the mod.
Brainstorm-Rerolled has the capability to save up to 5 save-states through the use of in-game key binds.
To create a save-state: Hold
z + 1-5To load a save-state: Holdx + 1-5
Each number from 0 - 5 corresponds to a save slot. To overwrite an old save, simply create a new save-state in it's slot.
Brainstorm allows for super-fast rerolling through the use of an in-game key bind.
To fast-roll: Press
Ctrl + r
Brainstorm can automatically reroll for parameters as specified by the user. You can edit the Auto-Reroll parameters in the Brainstorm in-game settings page.
To Auto-Reroll: Press
Ctrl + a
In addition to the original filters from brainstorm I have added a few more filters that can help facilitate Crimson Bean or simply an easy early game
ANTE 8 BEAN: This ensures you get a Turtle Bean within the first 150 items in the shop
LATE BURGLAR: This ensures there is a burglar within the first 50-150 cards in the ante 6, 7, or 8 shop
RETCON: This ensures that the retcon voucher appears before or in ante 8
EARLY COPY + MONEY: This ensures that between the shop and the packs in ante 1 you get a brainstorm, blueprint, and some form of money generation
I have added some basic code and an example to go off of to create custom filters. I have set it up so that custom filters will override any other selected filter to avoid crashes. If you want to use the mod as originally created simply keep the custom filters set to "No Filter". If you want to create your own custom filters you will need to edit immolate.cpp and immolate.hpp to add your custom filter similar to how I added the "Negative Blueprint" filter once added there you can build it and then copy the resulting dll into the brainstorm mod folder. Then you need to update the ui.lua and brainstorm.lua too add your new filter to the list.
- Open immolate.hpp
- Add the name of your new filter to
enum class customFilters - Add a new case in
inline std::string filterToString(customFilters f)for your new filter - add a new if statement in
inline customFilters stringToFilter(std::string i)for your new filter
- Add the name of your new filter to
- Open immolate.cpp
- Add a new case in the switch statement for your filter to
long filter(Instance inst) - Add corresponding code inside of that case for your custom filter
- Add a new case in the switch statement for your filter to
- Save and build the C++ code and copy the resulting dll into the brainstorm mod folder
- Open ui.lua
- Add a new entry to the
local custom_filter_listcorresponding to your new filter - Add a new entry to the
local custom_filter_keyscorresponding to your new filter
- Add a new entry to the
- Save ui.lua and run the game
- Your new filter should now be usable in the brainstorm settings