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",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.75",
|
"version": "2.9.76",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ spectral {
|
||||||
delay = 0.4,
|
delay = 0.4,
|
||||||
func = function()
|
func = function()
|
||||||
card:juice_up(0.3, 0.5)
|
card:juice_up(0.3, 0.5)
|
||||||
play_sound("tarot1")
|
play_sound "tarot1"
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ spectral {
|
||||||
return {vars = {card.ability.extra.amount}}
|
return {vars = {card.ability.extra.amount}}
|
||||||
end,
|
end,
|
||||||
can_use = function(_, card)
|
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,
|
end,
|
||||||
use = function(_, _, _)
|
use = function(_, _, _)
|
||||||
f(Bakery_API.get_highlighted()):each(function(v)
|
f(Bakery_API.get_highlighted()):each(function(v)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ q(SMODS.Consumable {
|
||||||
|
|
||||||
local highlighted = Bakery_API.get_highlighted()
|
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)
|
f(G.jokers.highlighted):concat(highlighted):all(function(v)
|
||||||
return not v.edition
|
return not v.edition
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue