Skip to content

Commit

Permalink
Add menu entry and fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
aMannus committed Jan 8, 2024
1 parent a48ed26 commit 2b8722f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions soh/soh/SohMenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,11 @@ void DrawEnhancementsMenu() {

if (ImGui::BeginMenu("Items"))
{
UIWidgets::PaddedEnhancementCheckbox("Turn Nayru's Love into Roc's Feather", "gRocsFeather", false, false);
UIWidgets::Tooltip(
"Nayru's Love acts like Roc's Feather from the Indigo romhack instead. Grants a jump that can even "
"be used in the air, "
"but needs to recharge by touching the ground afterwards. Does not require magic to use.");
UIWidgets::PaddedEnhancementCheckbox("Instant Putaway", "gInstantPutaway", true, false);
UIWidgets::Tooltip("Allow Link to put items away without having to wait around");
UIWidgets::PaddedEnhancementCheckbox("Instant Boomerang Recall", "gFastBoomerang", true, false);
Expand Down
6 changes: 3 additions & 3 deletions soh/src/overlays/actors/ovl_player_actor/z_player.c
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ void func_80833DF8(Player* this, PlayState* play) {
if ((item < ITEM_NONE_FE) && (Player_ItemToItemAction(item) == this->heldItemAction)) {
D_80853618 = true;
}
} else if (item != ITEM_NAYRUS_LOVE || !CVar_GetS32("gRocsFeather", 0)) {
} else if (item != ITEM_NAYRUS_LOVE || !CVarGetInteger("gRocsFeather", 0)) {
this->heldItemButton = i;
func_80835F44(play, this, item);
} else if (this->rocUseCount == 0) {
Expand All @@ -2147,9 +2147,9 @@ void func_80833DF8(Player* this, PlayState* play) {
EffectSsGRipple_Spawn(play, &effectsPos, 200 * effectsScale, 300 * effectsScale, 1);
EffectSsGSplash_Spawn(play, &effectsPos, NULL, NULL, 0, 150 * effectsScale);

this->stateFlags2 &= ~(PLAYER_STATE2_19);
this->stateFlags2 &= ~(PLAYER_STATE2_HOPPING);

func_8002F7DC(&this->actor, NA_SE_PL_SKIP);
Player_PlaySfx(&this->actor, NA_SE_PL_SKIP);
}
}
}
Expand Down

0 comments on commit 2b8722f

Please sign in to comment.