Add 2 new jokers

This commit is contained in:
Emik 2026-03-17 23:02:37 +01:00
parent bea00f493b
commit b21f20b127
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 63 additions and 0 deletions

View file

@ -126,6 +126,14 @@ return {
},
},
Joker = {
j_Roland_basket = {
name = "Basket",
text = {
"Sell this Joker to",
"create {C:dark_edition}Negative {}copies",
"of every consumable",
},
},
j_Roland_bulldozer = {
name = "Bulldozer",
text = {
@ -169,6 +177,14 @@ return {
},
},
},
j_Roland_hardboiled = {
name = "Hard-Boiled",
text = {
"Sell this Joker to",
"turn all cards in",
"hand {C:dark_edition}Frozen",
},
},
j_Roland_jokersr = {
name = "Joker Sr.",
text = {"{X:mult,C:white}X#1#{} Mult"},

View file

@ -464,6 +464,53 @@ joker {
end,
}
joker {
key = "hardboiled",
pronouns = "they_them",
cost = 5,
rarity = 2,
eternal_compat = false,
blueprint_compat = true,
perishable_compat = true,
loc_vars = function(_, info_queue)
table.insert(info_queue, G.P_CENTERS.e_Roland_frozen)
end,
calculate = function(_, _, context)
return (context.selling_self or context.forcetrigger) and f(G.hand.cards):each(function(v)
q {
delay = 0.1,
func = function()
v:set_edition {Roland_frozen = true}
end,
}
end) or nil
end,
}
joker {
key = "basket",
pronouns = "they_them",
cost = 8,
rarity = 3,
eternal_compat = false,
blueprint_compat = true,
perishable_compat = true,
loc_vars = function(_, info_queue)
table.insert(info_queue, negative)
end,
calculate = function(_, _, context)
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):each(function(v)
q {
delay = 1,
func = function()
play_sound "timpani"
SMODS.add_card {edition = "e_negative", key = v.config.center.key}
end,
}
end) or nil
end,
}
joker {
key = "sapling",
pronouns = "they_them",