fix halfmilk RBA (#6670)

This commit is contained in:
ph
2026-06-14 11:55:37 -07:00
committed by GitHub
parent 3250cc27f5
commit fc2f525052
3 changed files with 31 additions and 2 deletions
+5 -2
View File
@@ -2671,8 +2671,11 @@ void Inventory_UpdateBottleItem(PlayState* play, u8 item, u8 button) {
gSaveContext.inventory.items[gSaveContext.equips.cButtonSlots[button - 1]]);
// Special case to only empty half of a Lon Lon Milk Bottle
if ((gSaveContext.inventory.items[gSaveContext.equips.cButtonSlots[button - 1]] == ITEM_MILK_BOTTLE) &&
(item == ITEM_BOTTLE)) {
if (GameInteractor_Should(
VB_EMPTY_BOTTLE_TO_HALF_MILK,
(gSaveContext.inventory.items[gSaveContext.equips.cButtonSlots[button - 1]] == ITEM_MILK_BOTTLE) &&
(item == ITEM_BOTTLE),
button, item)) {
item = ITEM_MILK_HALF;
}