diff --git a/localization/en-us.lua b/localization/en-us.lua index 1d1dc68..0be0d0d 100644 --- a/localization/en-us.lua +++ b/localization/en-us.lua @@ -30,6 +30,7 @@ return { --"", --"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels", }, + unlock = {"Discover all {C:attention}Vouchers"}, }, }, BakeryCharm = { @@ -223,7 +224,6 @@ return { "to {C:attention}pull {}this {C:attention}Joker", "{C:inactive}(Currently {C:attention}#2#{C:inactive})", }, - unlock = {"Have only {C:enhanced}Stone", "cards in your deck"}, }, j_Roland_excalibur_Back = { name = "Excalibur", @@ -464,6 +464,7 @@ return { --"", --"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels", }, + unlock = {"Discover all {C:attention}Vouchers"}, }, sleeve_Roland_wish_alt = { name = "Miracle Sleeve", @@ -473,6 +474,7 @@ return { --"", --"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels", }, + unlock = {"Discover all {C:attention}Vouchers"}, }, }, Spectral = { diff --git a/manifest.json b/manifest.json index 8d92645..c5d0438 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.9.36", + "version": "2.9.37", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua", diff --git a/src/back.lua b/src/back.lua index b1bed72..6d91455 100644 --- a/src/back.lua +++ b/src/back.lua @@ -185,6 +185,11 @@ back { key = "wish", pronouns = "he_him", 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) G.GAME.modifiers.Roland_no_voucher = true local _ = self:is_alt() and f(G.P_CENTER_POOLS.Voucher):map "key":each(redeem) @@ -194,6 +199,10 @@ back { context.blind_defeated and not context.repetition 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()) end, }