Skip animation and add unlock condition for new deck

This commit is contained in:
Emik 2026-07-06 19:44:39 +02:00
parent 5d0fab66e8
commit 373b3e6031
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 13 additions and 2 deletions

View file

@ -30,6 +30,7 @@ return {
--"", --"",
--"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels", --"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels",
}, },
unlock = {"Discover all {C:attention}Vouchers"},
}, },
}, },
BakeryCharm = { BakeryCharm = {
@ -223,7 +224,6 @@ return {
"to {C:attention}pull {}this {C:attention}Joker", "to {C:attention}pull {}this {C:attention}Joker",
"{C:inactive}(Currently {C:attention}#2#{C:inactive})", "{C:inactive}(Currently {C:attention}#2#{C:inactive})",
}, },
unlock = {"Have only {C:enhanced}Stone", "cards in your deck"},
}, },
j_Roland_excalibur_Back = { j_Roland_excalibur_Back = {
name = "Excalibur", name = "Excalibur",
@ -464,6 +464,7 @@ return {
--"", --"",
--"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels", --"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels",
}, },
unlock = {"Discover all {C:attention}Vouchers"},
}, },
sleeve_Roland_wish_alt = { sleeve_Roland_wish_alt = {
name = "Miracle Sleeve", name = "Miracle Sleeve",
@ -473,6 +474,7 @@ return {
--"", --"",
--"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels", --"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels",
}, },
unlock = {"Discover all {C:attention}Vouchers"},
}, },
}, },
Spectral = { Spectral = {

View file

@ -3,7 +3,7 @@
"id": "Roland", "id": "Roland",
"name": "Roland", "name": "Roland",
"prefix": "Roland", "prefix": "Roland",
"version": "2.9.36", "version": "2.9.37",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"display_name": "Roland", "display_name": "Roland",
"main_file": "src/main.lua", "main_file": "src/main.lua",

View file

@ -185,6 +185,11 @@ back {
key = "wish", key = "wish",
pronouns = "he_him", pronouns = "he_him",
attributes = {"passive", "generation"}, attributes = {"passive", "generation"},
unlocked = false,
discovered = false,
check_for_unlock = function(_, args)
return args ~= "Bakery_nothing" and f(G.P_CENTER_POOLS.Voucher):all "discovered"
end,
apply = function(self) apply = function(self)
G.GAME.modifiers.Roland_no_voucher = true G.GAME.modifiers.Roland_no_voucher = true
local _ = self:is_alt() and f(G.P_CENTER_POOLS.Voucher):map "key":each(redeem) local _ = self:is_alt() and f(G.P_CENTER_POOLS.Voucher):map "key":each(redeem)
@ -194,6 +199,10 @@ back {
context.blind_defeated and context.blind_defeated and
not context.repetition and not context.repetition and
not G.GAME.blind.boss) and not G.GAME.blind.boss) and
f(G.P_CENTER_POOLS.Voucher)
:map "key"
:where(f.index_into(G.GAME.used_vouchers), false)
:any() and
redeem(get_next_voucher_key()) redeem(get_next_voucher_key())
end, end,
} }