mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-03 06:42:19 -05:00
Disable bunny hood NPC interactions with MM bunny hood on (#2058)
* Disable bunny hood NPC interactions * Enum
This commit is contained in:
parent
8d398f7130
commit
5b5310ea92
@ -382,7 +382,10 @@ namespace GameMenuBar {
|
|||||||
UIWidgets::PaddedText("Bunny Hood Effect", true, false);
|
UIWidgets::PaddedText("Bunny Hood Effect", true, false);
|
||||||
const char* bunnyHoodOptions[3] = { "Disabled", "Faster Run & Longer Jump", "Faster Run"};
|
const char* bunnyHoodOptions[3] = { "Disabled", "Faster Run & Longer Jump", "Faster Run"};
|
||||||
UIWidgets::EnhancementCombobox("gMMBunnyHood", bunnyHoodOptions, 3, 0);
|
UIWidgets::EnhancementCombobox("gMMBunnyHood", bunnyHoodOptions, 3, 0);
|
||||||
UIWidgets::Tooltip("Wearing the Bunny Hood grants a speed increase like in Majora's Mask. The longer jump option is not accounted for in randomizer logic.");
|
UIWidgets::Tooltip(
|
||||||
|
"Wearing the Bunny Hood grants a speed increase like in Majora's Mask. The longer jump option is not accounted for in randomizer logic.\n\n"
|
||||||
|
"Also disables NPC's reactions to wearing the Bunny Hood."
|
||||||
|
);
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Mask Select in Inventory", "gMaskSelect", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Mask Select in Inventory", "gMaskSelect", true, false);
|
||||||
UIWidgets::Tooltip("After completing the mask trading sub-quest, press A and any direction on the mask slot to change masks");
|
UIWidgets::Tooltip("After completing the mask trading sub-quest, press A and any direction on the mask slot to change masks");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Nuts explode bombs", "gNutsExplodeBombs", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Nuts explode bombs", "gNutsExplodeBombs", true, false);
|
||||||
|
@ -66,5 +66,10 @@ u16 sReactionTextIds[][PLAYER_MASK_MAX] = {
|
|||||||
u16 Text_GetFaceReaction(PlayState* play, u32 reactionSet) {
|
u16 Text_GetFaceReaction(PlayState* play, u32 reactionSet) {
|
||||||
u8 currentMask = Player_GetMask(play);
|
u8 currentMask = Player_GetMask(play);
|
||||||
|
|
||||||
return sReactionTextIds[reactionSet][currentMask];
|
if (CVar_GetS32("gMMBunnyHood", 0) && currentMask == PLAYER_MASK_BUNNY) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return sReactionTextIds[reactionSet][currentMask];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user