From 07e629d8d4c111dd5cdf45a5f6564f9f2b91f952 Mon Sep 17 00:00:00 2001 From: Nick Oates Date: Thu, 29 Aug 2024 22:39:40 -0700 Subject: [PATCH] SuperReactionTweaks: Allow disabling Super Reactions (#2805) --- src/plugins/superReactionTweaks/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/superReactionTweaks/index.ts b/src/plugins/superReactionTweaks/index.ts index 1a5e3a98..188f868a 100644 --- a/src/plugins/superReactionTweaks/index.ts +++ b/src/plugins/superReactionTweaks/index.ts @@ -22,10 +22,10 @@ export const settings = definePluginSettings({ }, superReactionPlayingLimit: { - description: "Max Super Reactions to play at once", + description: "Max Super Reactions to play at once. 0 to disable playing Super Reactions", type: OptionType.SLIDER, default: 20, - markers: [5, 10, 20, 40, 60, 80, 100], + markers: [0, 5, 10, 20, 40, 60, 80, 100], stickToMarkers: true, }, }, { @@ -58,6 +58,7 @@ export default definePlugin({ shouldPlayBurstReaction(playingCount: number) { if (settings.store.unlimitedSuperReactionPlaying) return true; + if (settings.store.superReactionPlayingLimit === 0) return false; if (playingCount <= settings.store.superReactionPlayingLimit) return true; return false; },