#[New Deck] Astronomer Deck

12 messages · Page 1 of 1 (latest)

mossy raven
#

I have an idea for a deck (and I have most of it working thanks to examples from other mods), but there's one thing I'm having trouble figuring out.
I want the deck to start out with some Jokers. Is this possible? I couldn't find an example of that anywhere, but I just might have not been looking at the right thing.

desert atlas
#

I don't remember the name but I can tell you tomorrow

#

I'm 99% sure it's in game.lua

mossy raven
#

I'm using Steamodded (using Lovely to inject). I got the basic framework of the deck I want to make by taking other people mods as inspiration (and help with the structure of how to write a mod), but I didn't see any that added Jokers to a deck.

desert atlas
#

You should check for a function named Game:start_something or Game:init_something

#

I'll tell you tomorrow if you ping me

runic pendant
#

@desert atlas here have a reminder for this guy

oblique zephyr
desert atlas
#

@mossy raven it should be something like that

local patch = [[
if self.name == 'Your deck name' then
    G.E_MANAGER:add_event(Event({
        func = function()
        -- TODO: add jokers
        end
    }))
end
]]

injectTail("back.lua","Back:apply_to_run", patch)
mossy raven
#

Finally got it working and am ready to release it.
Astronomer Deck is the perfect deck for an aspiring astronomer.
Start with several vouchers and jokers perfectly suited for traveling the cosmos.
Enjoy a deck where every card has a Blue Seal to help you finish your celestial collection!

#

[New Deck] Astronomer Deck