Loosen consumable usage requirements
This commit is contained in:
parent
2628ae39e6
commit
8edd1c1c73
3 changed files with 4 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue