From 9e0c8f2e22b75d40be8e68ee739633dd6fe320f8 Mon Sep 17 00:00:00 2001 From: Marvin Coto <138079874+MarvinCoto12@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:02:13 -0600 Subject: Add Boss Health Multiplier option and fix Z-Targeting health bar overflow (#1735) * Add bosses health multiplier * Fix scale max health dynamically to prevent health bar overflow * Format code using clang-format * Update mm/2s2h/BenGui/BenMenu.cpp Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com> * Apply suggestion from @Eblo Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com> * Apply suggestion from @Eblo Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com> * Apply suggestion from @Eblo Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com> * Optimizing boss tracking with COND_ID_HOOK and more options for the combo box. * fix unnecessary decimals * Apply feedback to zero-index options and optimize the memory lifecycle --------- Co-authored-by: Eblo <7004497+Eblo@users.noreply.github.com> --- mm/2s2h/BenGui/BenMenu.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mm/2s2h/BenGui/BenMenu.cpp') diff --git a/mm/2s2h/BenGui/BenMenu.cpp b/mm/2s2h/BenGui/BenMenu.cpp index b73f2a1d4..1ba3113bd 100644 --- a/mm/2s2h/BenGui/BenMenu.cpp +++ b/mm/2s2h/BenGui/BenMenu.cpp @@ -61,6 +61,10 @@ static const std::vector alwaysWinDoggyraceOptions = { "Always", // ALWAYS_WIN_DOGGY_RACE_ALWAYS }; +static const std::unordered_map bossHealthOptions = { + { 0, "1x (Default)" }, { 1, "1.25x" }, { 2, "1.50x" }, { 3, "1.75x" }, { 4, "2x" } +}; + static const std::vector cremiaRewardOptions = { "Vanilla", // CREMIA_REWARD_RANDOM "Hug", // CREMIA_REWARD_ALWAYS_HUG @@ -1716,6 +1720,11 @@ void BenMenu::AddEnhancements() { AddWidget(path, "Hyper Enemies", WIDGET_CVAR_CHECKBOX) .CVar("gEnhancements.DifficultyOptions.HyperEnemies") .Options(CheckboxOptions().Tooltip("Double the rate at which enemies are updated, making them more difficult")); + AddWidget(path, "Boss Health Multiplier", WIDGET_CVAR_COMBOBOX) + .CVar("gEnhancements.DifficultyOptions.BossHealthMultiplier") + .Options(ComboboxOptions() + .Tooltip("Multiply the health of all bosses. Requires a Scene Reload to take effect.") + .ComboMap(&bossHealthOptions)); AddWidget(path, "Damage Multiplier", WIDGET_CVAR_COMBOBOX) .CVar("gEnhancements.DifficultyOptions.DamageMultiplier") .Options(ComboboxOptions() -- cgit v1.2.3