Skip to content

Commit

Permalink
Implement blast mask cooldown changes. Includes new comfort menu. (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored Feb 22, 2024
1 parent 26a4184 commit 82d9ec6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Z3DR
14 changes: 5 additions & 9 deletions source/setting_descriptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,17 +393,13 @@ string_view removeDDDesc = "If set the double defense item will be
/*------------------------------ //
| BLAST MASK COOLDOWN | //
------------------------------*/ //
string_view blastDefault = "**OPTION CURRENTLY WIP**\n" //
"Sets the cooldown time on the blastmask to \n" //
string_view blastDefault = "Sets the cooldown time on the blastmask to \n" //
"the default cooldown time of 10 seconds"; //
string_view blastInstant = "**OPTION CURRENTLY WIP**\n" //
"Sets the cooldown time on the blastmask to \n" //
string_view blastInstant = "Sets the cooldown time on the blastmask to \n" //
"have no cooldown time"; //
string_view blastVeryShort = "**OPTION CURRENTLY WIP**\n" //
"Sets the cooldown time on the blastmask to \n" //
"have an even shorter cooldown time of 1 second"; //
string_view blastShort = "**OPTION CURRENTLY WIP**\n" //
"Sets the cooldown time on the blastmask to \n" //
string_view blastVeryShort = "Sets the cooldown time on the blastmask to \n" //
"have an even shorter cooldown time of 3 seconds"; //
string_view blastShort = "Sets the cooldown time on the blastmask to \n" //
"have a shorter cooldown time of 5 seconds"; //
string_view blastLong = "**OPTION CURRENTLY WIP**\n" //
"Sets the cooldown time on the blastmask to \n" //
Expand Down
18 changes: 9 additions & 9 deletions source/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ namespace Settings {

/*COMFORT*/

Option BlastMaskCooldown = Option::U8("Blast Mask Cooldown", { "Default", "Instant", "Very Short", "Short", "Long", "Very Long" }, { blastDefault, blastInstant, blastVeryShort, blastShort, blastLong, blastVeryLong });
Option BlastMaskCooldown = Option::U8("Blast Mask Cooldown", {"Default", "Short", "Very Short", "Instant"}, { blastDefault, blastShort, blastVeryShort, blastInstant });
Option UnderwaterOcarina = Option::Bool("Underwater Ocarina", { "No","Yes" }, { underwaterOcarinaDesc }, OptionCategory::Toggle);
Option FierceDeityAnywhere = Option::Bool("Fierce Deity Anywhere", { "No","Yes" }, { fierceDeityAnywhereDesc }, OptionCategory::Toggle);
Option ProgressiveGildedSword = Option::Bool("Progressive Gilded Sword", { "Off", "On" }, { progressiveGildedSwordDesc });
Expand All @@ -372,12 +372,12 @@ namespace Settings {
std::vector<Option*> comfortOptions = {

&BlastMaskCooldown,
&UnderwaterOcarina,
&FierceDeityAnywhere,
// &UnderwaterOcarina,
// &FierceDeityAnywhere,
//&ProgressiveGildedSword,
&StartingSpin,
&AmmoDrops,
&HeartDropRefills,
// &StartingSpin,
// &AmmoDrops,
// &HeartDropRefills,
//&BombchusInLogic,
};

Expand Down Expand Up @@ -543,7 +543,7 @@ namespace Settings {


//Menu mainSettings = Menu::SubMenu("Main Settings", &mainSettingsOptions);
Menu comfort = Menu::SubMenu("Comfort", &comfortOptions);
Menu comfort = Menu::SubMenu("Comfort Settings", &comfortOptions);
Menu restorationSettings = Menu::SubMenu("Restoration Settings", &restorationOptions);
Menu cutsceneSettings = Menu::SubMenu("Cutscene Settings", &cutsceneOptions);
Menu settingsPresets = Menu::SubMenu("Settings Presets", &settingsPresetItems);
Expand All @@ -563,7 +563,7 @@ namespace Settings {
&itemPool,
&startingInventory,
&detailLogic,
//&comfort,
&comfort,
&restorationSettings,
&cutsceneSettings,
&otherSettings,
Expand Down Expand Up @@ -637,7 +637,7 @@ namespace Settings {
ctx.ingameSpoilers = (IngameSpoilers) ? 1 : 0;
//ctx.menuOpeningButton = MenuOpeningButton.Value<u8>();

//ctx.blastMaskCooldown = BlastMaskCooldown.Value<u8>();
ctx.blastMaskCooldown = BlastMaskCooldown.Value<u8>();
//ctx.underwaterOcarina = (UnderwaterOcarina) ? 1 : 0;
//ctx.fierceDeityAnywhere = (FierceDeityAnywhere) ? 1 : 0;
ctx.skipMinigamePhases = (SkipMinigamePhases) ? 1 : 0;
Expand Down

0 comments on commit 82d9ec6

Please sign in to comment.