diff --git a/lib/combo-renderer.coffee b/lib/combo-renderer.coffee index 2f2f3d1..4653ea0 100644 --- a/lib/combo-renderer.coffee +++ b/lib/combo-renderer.coffee @@ -29,6 +29,7 @@ module.exports = @observe 'exclamationEvery' @observe 'activationThreshold' @observe 'exclamationTexts' + @observe 'multiplier' @subscriptions.add atom.commands.add "atom-workspace", "activate-power-mode:reset-max-combo": => @resetMaxStreak() @@ -101,7 +102,7 @@ module.exports = @lastStreak = performance.now() @debouncedEndStreak() - n = n * (@level + 1) if n > 0 + n = n * (@level + 1) if n > 0 and @conf['multiplier'] oldStreak = @currentStreak @currentStreak += n @@ -148,7 +149,7 @@ module.exports = if level != @level @container.classList.remove "level-#{@level}" @container.classList.add "level-#{level}" - @showExclamation "#{level+1}x", 'level', false + @showExclamation "#{level+1}x", 'level', false if @conf['multiplier'] @pluginManager.runOnComboLevelChange(level, @level) @level = level return true diff --git a/lib/config-schema.coffee b/lib/config-schema.coffee index 4f02b2c..027fa21 100644 --- a/lib/config-schema.coffee +++ b/lib/config-schema.coffee @@ -17,6 +17,13 @@ module.exports = default: true order: 1 + multiplier: + title: "Combo Mode - Multiplier" + description: "Turn the multiplier on/off. (multiplier = streak * current level)." + type: "boolean" + default: true + order: 2 + activationThreshold: title: "Combo Mode - Activation Threshold" description: "Streak threshold to activate the power mode and levels." diff --git a/menus/activate-power-mode.cson b/menus/activate-power-mode.cson index b78379e..d8922a1 100644 --- a/menus/activate-power-mode.cson +++ b/menus/activate-power-mode.cson @@ -15,6 +15,26 @@ { 'label': 'Toggle' 'command': 'activate-power-mode:toggle' + }, + { + 'label': 'Enable' + 'command': 'activate-power-mode:enable' + }, + { + 'label': 'Disable' + 'command': 'activate-power-mode:disable' + }, + { + 'label': 'Select Effects' + 'command': 'activate-power-mode:select-effect' + }, + { + 'label': 'Select Flow' + 'command': 'activate-power-mode:select-flow' + }, + { + 'label': 'Reset Max Combo' + 'command': 'activate-power-mode:reset-max-combo' } ] ]