Skip to content

Commit

Permalink
bush drop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inspectredc committed Aug 24, 2023
1 parent f0035e3 commit 0068e8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions soh/soh/SohMenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,8 @@ void DrawEnhancementsMenu() {
UIWidgets::PaddedEnhancementCheckbox("Fix Poacher's Saw Softlock", "gFixSawSoftlock", true, false, CVarGetInteger("gSkipText", 0),
"This is disabled because it is forced on when Skip Text is enabled.", UIWidgets::CheckboxGraphics::Checkmark);
UIWidgets::Tooltip("Prevents the Poacher's Saw softlock from mashing through the text, or with Skip Text enabled.");
UIWidgets::PaddedEnhancementCheckbox("Fix Bush Item Drops", "gBushDropFix", true, false);
UIWidgets::Tooltip("Fixes the bushes to drop items correctly rather than spawning undefined items.");

ImGui::EndMenu();
}
Expand Down
6 changes: 5 additions & 1 deletion soh/src/code/z_en_item00.c
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,11 @@ void Item_DropCollectibleRandom(PlayState* play, Actor* fromActor, Vec3f* spawnP
}
}
} else {
Item_DropCollectible(play, spawnPos, params | 0x8000);
if (CVarGetInteger("gBushDropFix", 0)) {
Item_DropCollectible(play, spawnPos, dropId | 0x8000);
} else {
Item_DropCollectible(play, spawnPos, params | 0x8000);
}
}
dropQuantity--;
}
Expand Down

0 comments on commit 0068e8d

Please sign in to comment.