Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Brainstorm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ function initBrainstorm()
local settings_file = STR_UNPACK(nativefs.read((lovely.mod_dir .. "/Brainstorm/settings.lua")))
if settings_file ~= nil then
Brainstorm.SETTINGS = settings_file
if not Brainstorm.SETTINGS.autoreroll.searchJoker then
Brainstorm.SETTINGS.autoreroll.searchJoker = ""
end
if not Brainstorm.SETTINGS.autoreroll.searchJokerID then
Brainstorm.SETTINGS.autoreroll.searchJokerID = 1
end
if not Brainstorm.SETTINGS.autoreroll.searchJokerLocation then
Brainstorm.SETTINGS.autoreroll.searchJokerLocation = "any"
end
if not Brainstorm.SETTINGS.autoreroll.searchJokerLocationID then
Brainstorm.SETTINGS.autoreroll.searchJokerLocationID = 1
end
end
end
_RELEASE_MODE = not Brainstorm.SETTINGS.debug_mode
Expand Down
177 changes: 177 additions & 0 deletions Brainstorm_UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,175 @@ Brainstorm.SearchPackList = {
["Jumbo Spectral"] = {"p_spectral_jumbo_1"},
["Mega Spectral"] = {"p_spectral_mega_1"},
}

Brainstorm.SearchJokerList = {
["None"] = "",
["8 Ball"] = "j_8_ball",
["Abstract Joker"] = "j_abstract",
["Acrobat"] = "j_acrobat",
["Ancient Joker"] = "j_ancient",
["Arrowhead"] = "j_arrowhead",
["Astronomer"] = "j_astronomer",
["Banner"] = "j_banner",
["Baron"] = "j_baron",
["Baseball Card"] = "j_baseball",
["Blackboard"] = "j_blackboard",
["Bloodstone"] = "j_bloodstone",
["Blue Joker"] = "j_blue_joker",
["Blueprint"] = "j_blueprint",
["Bootstraps"] = "j_bootstraps",
["Brainstorm"] = "j_brainstorm",
["Bull"] = "j_bull",
["Burglar"] = "j_burglar",
["Burnt Joker"] = "j_burnt",
["Business Card"] = "j_business",
["Caino"] = "j_caino",
["Campfire"] = "j_campfire",
["Card Sharp"] = "j_card_sharp",
["Cartomancer"] = "j_cartomancer",
["Castle"] = "j_castle",
["Cavendish"] = "j_cavendish",
["Ceremonial Dagger"] = "j_ceremonial",
["Certificate"] = "j_certificate",
["Chaos the Clown"] = "j_chaos",
["Chicot"] = "j_chicot",
["Clever Joker"] = "j_clever",
["Cloud 9"] = "j_cloud_9",
["Constellation"] = "j_constellation",
["Crafty Joker"] = "j_crafty",
["Crazy Joker"] = "j_crazy",
["Credit Card"] = "j_credit_card",
["Delayed Gratification"] = "j_delayed_grat",
["Devious Joker"] = "j_devious",
["Diet Cola"] = "j_diet_cola",
["DNA"] = "j_dna",
["Driver's License"] = "j_drivers_license",
["Droll Joker"] = "j_droll",
["Drunkard"] = "j_drunkard",
["Dusk"] = "j_dusk",
["Egg"] = "j_egg",
["Erosion"] = "j_erosion",
["Even Steven"] = "j_even_steven",
["Faceless Joker"] = "j_faceless",
["Fibonacci"] = "j_fibonacci",
["Flash Card"] = "j_flash",
["Flower Pot"] = "j_flower_pot",
["Fortune Teller"] = "j_fortune_teller",
["Four Fingers"] = "j_four_fingers",
["Gift Card"] = "j_gift",
["Glass Joker"] = "j_glass",
["Gluttonous Joker"] = "j_gluttenous_joker",
["Golden Joker"] = "j_golden",
["Golden Ticket"] = "j_ticket",
["Green Joker"] = "j_green_joker",
["Greedy Joker"] = "j_greedy_joker",
["Gros Michel"] = "j_gros_michel",
["Hack"] = "j_hack",
["Half Joker"] = "j_half",
["Hallucination"] = "j_hallucination",
["Hanging Chad"] = "j_hanging_chad",
["Hiker"] = "j_hiker",
["Hit the Road"] = "j_hit_the_road",
["Hologram"] = "j_hologram",
["Ice Cream"] = "j_ice_cream",
["Invisible Joker"] = "j_invisible",
["Joker"] = "j_joker",
["Joker Stencil"] = "j_stencil",
["Jolly Joker"] = "j_jolly",
["Juggler"] = "j_juggler",
["Luchador"] = "j_luchador",
["Lucky Cat"] = "j_lucky_cat",
["Lusty Joker"] = "j_lusty_joker",
["Mad Joker"] = "j_mad",
["Madness"] = "j_madness",
["Mail-In Rebate"] = "j_mail",
["Marble Joker"] = "j_marble",
["Matador"] = "j_matador",
["Merry Andy"] = "j_merry_andy",
["Midas Mask"] = "j_midas_mask",
["Mime"] = "j_mime",
["Misprint"] = "j_misprint",
["Mr. Bones"] = "j_mr_bones",
["Mystic Summit"] = "j_mystic_summit",
["Obelisk"] = "j_obelisk",
["Odd Todd"] = "j_odd_todd",
["Onyx Agate"] = "j_onyx_agate",
["Oops! All 6s"] = "j_oops",
["Pareidolia"] = "j_pareidolia",
["Perkeo"] = "j_perkeo",
["Photograph"] = "j_photograph",
["Popcorn"] = "j_popcorn",
["Raised Fist"] = "j_raised_fist",
["Ramen"] = "j_ramen",
["Red Card"] = "j_red_card",
["Reserved Parking"] = "j_reserved_parking",
["Ride the Bus"] = "j_ride_the_bus",
["Riff-raff"] = "j_riff_raff",
["Rocket"] = "j_rocket",
["Rough Gem"] = "j_rough_gem",
["Runner"] = "j_runner",
["Satellite"] = "j_satellite",
["Scary Face"] = "j_scary_face",
["Scholar"] = "j_scholar",
["Seance"] = "j_seance",
["Seeing Double"] = "j_seeing_double",
["Seltzer"] = "j_selzer",
["Shoot the Moon"] = "j_shoot_the_moon",
["Shortcut"] = "j_shortcut",
["Showman"] = "j_ring_master",
["Sixth Sense"] = "j_sixth_sense",
["Sly Joker"] = "j_sly",
["Smeared Joker"] = "j_smeared",
["Smiley Face"] = "j_smiley",
["Sock and Buskin"] = "j_sock_and_buskin",
["Space Joker"] = "j_space",
["Spare Trousers"] = "j_trousers",
["Splash"] = "j_splash",
["Square Joker"] = "j_square",
["Steel Joker"] = "j_steel_joker",
["Stone Joker"] = "j_stone",
["Stuntman"] = "j_stuntman",
["Supernova"] = "j_supernova",
["Superposition"] = "j_superposition",
["Swashbuckler"] = "j_swashbuckler",
["The Duo"] = "j_duo",
["The Family"] = "j_family",
["The Idol"] = "j_idol",
["The Order"] = "j_order",
["The Tribe"] = "j_tribe",
["The Trio"] = "j_trio",
["Throwback"] = "j_throwback",
["To Do List"] = "j_todo_list",
["To the Moon"] = "j_to_the_moon",
["Trading Card"] = "j_trading",
["Triboulet"] = "j_triboulet",
["Troubadour"] = "j_troubadour",
["Turtle Bean"] = "j_turtle_bean",
["Vagabond"] = "j_vagabond",
["Vampire"] = "j_vampire",
["Walkie Talkie"] = "j_walkie_talkie",
["Wee Joker"] = "j_wee",
["Wily Joker"] = "j_wily",
["Wrathful Joker"] = "j_wrathful_joker",
["Yorick"] = "j_yorick",
["Zany Joker"] = "j_zany",
}
Brainstorm.seedsPerFrame = {
["500"] = 500,
["750"] = 750,
["1000"] = 1000,
}

Brainstorm.SearchJokerLocationList = {
["In Any Location"] = "any",
["In Any Buffoon Pack"] = "pack",
["In Shop Slots"] = "shop",
}

local searchTagKeys = {"None", "Charm Tag", "Double Tag", "Uncommon Tag", "Rare Tag", "Holographic Tag", "Foil Tag", "Polychrome Tag", "Investment Tag", "Voucher Tag", "Boss Tag", "Juggle Tag", "Coupon Tag", "Economy Tag", "Skip Tag", "D6 Tag"}
local searchPackKeys = {"None", "Arcana", "Celestial", "Standard", "Buffoon", "Spectral", "Normal Arcana", "Jumbo Arcana", "Mega Arcana", "Normal Celestial", "Jumbo Celestial", "Mega Celestial", "Normal Standard", "Jumbo Standard", "Mega Standard", "Normal Buffoon", "Jumbo Buffoon", "Mega Buffoon", "Normal Spectral", "Jumbo Spectral", "Mega Spectral"}
local searchJokerKeys = {"None", "8 Ball", "Abstract Joker", "Acrobat", "Ancient Joker", "Arrowhead", "Astronomer", "Banner", "Baron", "Baseball Card", "Blackboard", "Bloodstone", "Blue Joker", "Blueprint", "Bootstraps", "Brainstorm", "Bull", "Burglar", "Burnt Joker", "Business Card", "Caino", "Campfire", "Card Sharp", "Cartomancer", "Castle", "Cavendish", "Ceremonial Dagger", "Certificate", "Chaos the Clown", "Chicot", "Clever Joker", "Cloud 9", "Constellation", "Crafty Joker", "Crazy Joker", "Credit Card", "Delayed Gratification", "Devious Joker", "Diet Cola", "DNA", "Driver's License", "Droll Joker", "Drunkard", "Dusk", "Egg", "Erosion", "Even Steven", "Faceless Joker", "Fibonacci", "Flash Card", "Flower Pot", "Fortune Teller", "Four Fingers", "Gift Card", "Glass Joker", "Gluttonous Joker", "Golden Joker", "Golden Ticket", "Green Joker", "Greedy Joker", "Gros Michel", "Hack", "Half Joker", "Hallucination", "Hanging Chad", "Hiker", "Hit the Road", "Hologram", "Ice Cream", "Invisible Joker", "Joker", "Joker Stencil", "Jolly Joker", "Juggler", "Luchador", "Lucky Cat", "Lusty Joker", "Mad Joker", "Madness", "Mail-In Rebate", "Marble Joker", "Matador", "Merry Andy", "Midas Mask", "Mime", "Misprint", "Mr. Bones", "Mystic Summit", "Obelisk", "Odd Todd", "Onyx Agate", "Oops! All 6s", "Pareidolia", "Perkeo", "Photograph", "Popcorn", "Raised Fist", "Ramen", "Red Card", "Reserved Parking", "Ride the Bus", "Riff-raff", "Rocket", "Rough Gem", "Runner", "Satellite", "Scary Face", "Scholar", "Seance", "Seeing Double", "Seltzer", "Shoot the Moon", "Shortcut", "Showman", "Sixth Sense", "Sly Joker", "Smeared Joker", "Smiley Face", "Sock and Buskin", "Space Joker", "Spare Trousers", "Splash", "Square Joker", "Steel Joker", "Stone Joker", "Stuntman", "Supernova", "Superposition", "Swashbuckler", "The Duo", "The Family", "The Idol", "The Order", "The Tribe", "The Trio", "Throwback", "To Do List", "To the Moon", "Trading Card", "Triboulet", "Troubadour", "Turtle Bean", "Vagabond", "Vampire", "Walkie Talkie", "Wee Joker", "Wily Joker", "Wrathful Joker", "Yorick", "Zany Joker"}
local searchJokerLocationKeys = {"In Any Location", "In Any Buffoon Pack", "In Shop Slots"}
local seedsPerFrame = {"500", "750", "1000"}
-- print(Brainstorm.FUNCS.inspect(searchTagKeys))

Expand Down Expand Up @@ -99,6 +260,22 @@ function create_tabs(args)
opt_callback = "change_search_pack",
current_option = Brainstorm.SETTINGS.autoreroll.searchPackID or 1,
}),
create_option_cycle({
label = "AutoReroll Search Joker",
scale = 0.8,
w = 4,
options = searchJokerKeys,
opt_callback = "change_search_joker",
current_option = Brainstorm.SETTINGS.autoreroll.searchJokerID or 1,
}),
create_option_cycle({
label = "Search Joker Location",
scale = 0.8,
w = 4,
options = searchJokerLocationKeys,
opt_callback = "change_search_joker_location",
current_option = Brainstorm.SETTINGS.autoreroll.searchJokerLocationID or 1,
}),
create_option_cycle({
label = "Charm Tag/Arcana Pack: Number of Souls",
scale = 0.8,
Expand Down
Loading