From 8edd1c1c73d3878860762928e224f2efdb734e0f Mon Sep 17 00:00:00 2001 From: Emik Date: Fri, 24 Jul 2026 18:41:43 +0200 Subject: [PATCH] Loosen consumable usage requirements --- manifest.json | 2 +- src/spectral.lua | 4 ++-- src/tarot.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 9cb2f9b..90f836d 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/src/spectral.lua b/src/spectral.lua index b4b29fb..89d0f87 100644 --- a/src/spectral.lua +++ b/src/spectral.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) diff --git a/src/tarot.lua b/src/tarot.lua index bbe684b..2d4d24e 100644 --- a/src/tarot.lua +++ b/src/tarot.lua @@ -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)