mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
bush drop fix (#3148)
This commit is contained in:
parent
ccc933c59a
commit
0f41b25918
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue