From 27ce5bbb2e76aa9885dc6d87157e7dc72cae8683 Mon Sep 17 00:00:00 2001 From: Emik Date: Mon, 27 Jul 2026 20:23:21 +0200 Subject: [PATCH] Make bulk use very fast --- manifest.json | 2 +- src/spectral.lua | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index c152f3c..b986ee7 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.9.83", + "version": "2.9.84", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua", diff --git a/src/spectral.lua b/src/spectral.lua index 8d747bb..f9d50ee 100644 --- a/src/spectral.lua +++ b/src/spectral.lua @@ -50,17 +50,19 @@ spectral { options = f(G.P_SEALS):keys():where(f.nq "Roland_glass"):values():table(), } - q { + local _ = not card.Roland_immediate and q { delay = 0.5, trigger = "after", func = function() v:set_seal(seal, nil, true) end, - } + } or v:set_seal(seal, true, true) end) end, bulk_use = function(self, card, area, copier, number) + card.Roland_immediate = true f(number):map(f.const(self)):each(f.call("use", card, area, copier)) + card.Roland_immediate = nil end, }