Clone exclusively consumables

This commit is contained in:
Emik 2026-06-06 13:50:33 +02:00
parent b8c632f4c9
commit 3f27a072e3
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 4 additions and 6 deletions

View file

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

View file

@ -242,10 +242,8 @@ joker {
table.insert(info_queue, negative) table.insert(info_queue, negative)
end, end,
calculate = function(_, _, context) calculate = function(_, _, context)
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):where(function(v) return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):each(function(v) --@type Card
return v.config.center.set ~= "Joker" return v.ability.consumeable and q {
end):each(function(v)
q {
delay = 1, delay = 1,
func = function() func = function()
play_sound "timpani" play_sound "timpani"

View file

@ -640,7 +640,7 @@ end
---@generic K, V ---@generic K, V
---@param self F|{ [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) function f:each(func)
for k, v in self.next do for k, v in self.next do
if func then if func then