houselannister wrote: ↑Thu Mar 28, 2024 8:06 pm
Now I am on the hunt to see if there is a way to just give yourself certain jokers at game start.
Figured this out. Have to make a change to the Deck so that it reads a config that includes jokers. Deck changes are made in
back.lua
In
back.lua somewhere in the function
Back:apply_to_run
(I put it on line 232 at the end of the 'config' reading)
if self.effect.config.jokers then
for k, v in ipairs(self.effect.config.jokers) do
G.E_MANAGER:add_event(Event({
func = function()
local _joker = add_joker(v.id, v.edition, k ~= 1)
if v.eternal then _joker:set_eternal(true) end
if v.pinned then _joker.pinned = true end
return true
end
}))
endend
and then you can change the config for
game.lua to send a list of jokers like this:
b_checkered= {name = "Checkered Deck", stake = 1, unlocked = false,order = 10,pos = {x=1,y=3}, set = "Back", config = {dollars = 100, joker_slot = 10, jokers = {{id = 'j_wrathful_joker', edition = 'negative', eternal = true}, {id = 'j_lusty_joker', edition = 'polychrome', eternal = true}, {id = 'j_greedy_joker', edition = 'holo', eternal = true}, {id = 'j_gluttenous_joker', edition = 'foil', eternal = true}, {id = 'j_tribe', edition = 'negative', eternal = true}, {id = 'j_tribe', edition = 'negative', eternal = true}, {id = 'j_stencil', edition = 'negative', eternal = true}}}, unlock_condition = {type = 'win_deck', deck = 'b_black'}},
This was using the checkered deck as an example.
Jokers are listed from line 366 - 525 in
game.lua. the ids all start with "j_" and are what you use to pass these jokers
Heads up, also, for holographic, you have to pass 'holo' instead of holographic spelled out. Every other 'edition' works as expected.
Hope this helps everyone else too.