Clone exclusively consumables
This commit is contained in:
parent
b8c632f4c9
commit
dff89f4062
3 changed files with 4 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"id": "Roland",
|
||||
"name": "Roland",
|
||||
"prefix": "Roland",
|
||||
"version": "2.8.18",
|
||||
"version": "2.8.19",
|
||||
"badge_colour": "8BE9FD",
|
||||
"display_name": "Roland",
|
||||
"main_file": "src/main.lua",
|
||||
|
|
|
|||
|
|
@ -242,10 +242,8 @@ joker {
|
|||
table.insert(info_queue, negative)
|
||||
end,
|
||||
calculate = function(_, _, context)
|
||||
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):where(function(v)
|
||||
return v.config.center.set ~= "Joker"
|
||||
end):each(function(v)
|
||||
q {
|
||||
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):each(function(v) --@type Card
|
||||
return v.ability.consumeable and q {
|
||||
delay = 1,
|
||||
func = function()
|
||||
play_sound "timpani"
|
||||
|
|
|
|||
|
|
@ -640,7 +640,7 @@ end
|
|||
|
||||
---@generic K, V
|
||||
---@param self F|{ [K]: V }
|
||||
---@param func? fun(v: V, k: K)
|
||||
---@param func? fun(v: V, k: K): nil
|
||||
function f:each(func)
|
||||
for k, v in self.next do
|
||||
if func then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue