Loosen consumable usage requirements

This commit is contained in:
Emik 2026-07-24 18:41:43 +02:00
parent 2628ae39e6
commit 8edd1c1c73
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 4 additions and 4 deletions

View file

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

View file

@ -77,7 +77,7 @@ spectral {
delay = 0.4,
func = function()
card:juice_up(0.3, 0.5)
play_sound("tarot1")
play_sound "tarot1"
end,
}
@ -132,7 +132,7 @@ spectral {
return {vars = {card.ability.extra.amount}}
end,
can_use = function(_, card)
return u() and #Bakery_API.get_highlighted() == card.ability.extra.amount
return u() and #Bakery_API.get_highlighted() <= card.ability.extra.amount
end,
use = function(_, _, _)
f(Bakery_API.get_highlighted()):each(function(v)

View file

@ -27,7 +27,7 @@ q(SMODS.Consumable {
local highlighted = Bakery_API.get_highlighted()
return #G.jokers.highlighted + #highlighted == card.ability.extra.amount and
return #G.jokers.highlighted + #highlighted <= card.ability.extra.amount and
f(G.jokers.highlighted):concat(highlighted):all(function(v)
return not v.edition
end)