Buff Blossom Deck and Sleeve

This commit is contained in:
Emik 2026-07-06 20:17:32 +02:00
parent 373b3e6031
commit 60c6173a9c
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 22 additions and 20 deletions

View file

@ -6,7 +6,7 @@ return {
text = {
"{C:attention}Small{} and {C:attention}Big Blinds{} are",
"replaced with {C:attention}Boss Blinds",
"that are {C:dark_edition}debuffed twice",
"that are {C:dark_edition}debuffed thrice",
"",
"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels",
},
@ -422,7 +422,7 @@ return {
text = {
"{C:attention}Small{} and {C:attention}Big Blinds{} are",
"replaced with {C:attention}Boss Blinds",
"that are {C:dark_edition}debuffed twice",
"that are {C:dark_edition}debuffed thrice",
"",
"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels",
},
@ -431,7 +431,7 @@ return {
name = "Efflorescent Sleeve",
text = {
"{C:dark_edition}Debuff {X:dark_edition,C:white}#1#X<ante>{C:dark_edition} times",
"{C:inactive}(Instead of twice)",
"{C:inactive}(Instead of thrice)",
"",
"{C:Bakery_credit_fg_Roland_bakersdozenbagels,s:0.75}Art: BakersDozenBagels",
},

View file

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

View file

@ -70,7 +70,7 @@ local _ = CardSleeves and SMODS.Atlas {
back {
key = "blossom",
pronouns = "any_all",
config = {extra = {alt_times = 4, times = 2}},
config = {extra = {alt_times = 9, times = 3}},
attributes = {"passive", "boss_blind"},
loc_vars = function(self, _, _)
return {vars = {self.config.extra.alt_times}}
@ -78,7 +78,7 @@ back {
apply = function(_, _)
G.GAME.modifiers.Roland_blossom_deck = true
end,
calculate = function(self, card, context)
calculate = function(self, b, context)
if not context.forcetrigger and not context.setting_blind then
return
end
@ -91,23 +91,25 @@ back {
return
end
local count = self:is_alt() and
local function debuff(times)
return function()
if times <= 0 then
return
end
G.GAME.blind:disable()
SMODS.calculate_effect({message = localize "ph_boss_disabled"}, b)
G.GAME.blind:wiggle()
play_sound "timpani"
q {func = debuff(times - 1)}
end
end
local times = self:is_alt() and
G.GAME.round_resets.ante * self.config.extra.alt_times or
self.config.extra.times
f(count):each(function(i)
local _ = i == 1 and G.GAME.blind:disable()
q {
delay = 0.4,
func = function()
local _ = i ~= 1 and G.GAME.blind:disable()
SMODS.calculate_effect({message = localize "ph_boss_disabled"}, card)
G.GAME.blind:wiggle()
play_sound "timpani"
end,
}
end)
debuff(times)()
end,
}