mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-30 20:11:50 -04:00
Rename GetItemFromGet and move obtainability checks to a separate function
This commit is contained in:
@@ -2534,6 +2534,22 @@ s32 Inventory_HasEmptyBottle(void) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Inventory_HasEmptyBottleSlot(void) {
|
||||
u8* items = gSaveContext.inventory.items;
|
||||
|
||||
if (items[SLOT_BOTTLE_1] == ITEM_NONE) {
|
||||
return true;
|
||||
} else if (items[SLOT_BOTTLE_2] == ITEM_NONE) {
|
||||
return true;
|
||||
} else if (items[SLOT_BOTTLE_3] == ITEM_NONE) {
|
||||
return true;
|
||||
} else if (items[SLOT_BOTTLE_4] == ITEM_NONE) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
s32 Inventory_HasSpecificBottle(u8 bottleItem) {
|
||||
u8* items = gSaveContext.inventory.items;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user