Go to the source code of this file.
Functions | |
| s32 | add_item (s32 itemID) |
Add itemID to player inventory and return inventory slot in which it was placed. | |
| s32 | remove_item (s32 itemID) |
Remove first instance of itemID found in player inventory. | |
| b32 | has_item (s32 itemID) |
Check whether player has itemID in their inventory. | |
| s32 | find_item (s32 itemID) |
Search player inventory for itemID and return first matching array index. | |
| s32 | count_item (s32 itemID) |
Search player inventory for itemID and count the number matches. | |
| b32 | is_badge_equipped (s32 itemID) |
| s32 | get_consumables_count (void) |
| s32 | get_consumables_empty (void) |
| s32 | store_item (s32 itemID) |
Add itemID to player storage and return slot in which it was placed. | |
| s32 | get_stored_count (void) |
| s32 | get_stored_empty (void) |
| s32 | recover_hp (s32 amt) |
| Recover player HP. | |
| s32 | recover_fp (s32 amt) |
| Recover player FP. | |
Add itemID to player inventory and return inventory slot in which it was placed.
Definition at line 151 of file inventory.c.
Referenced by update_item_entity_pickup().
Remove first instance of itemID found in player inventory.
Definition at line 203 of file inventory.c.
Check whether player has itemID in their inventory.
Definition at line 342 of file inventory.c.
Search player inventory for itemID and return first matching array index.
Definition at line 263 of file inventory.c.
Search player inventory for itemID and count the number matches.
itemID Definition at line 309 of file inventory.c.
itemID as an equipped badge Definition at line 392 of file inventory.c.
Definition at line 428 of file inventory.c.
Referenced by get_consumables_empty().
Definition at line 441 of file inventory.c.
Add itemID to player storage and return slot in which it was placed.
Definition at line 374 of file inventory.c.
Definition at line 445 of file inventory.c.
Referenced by get_stored_empty().
Recover player HP.
| amt | the amount to recover, -1 for full, -2 for full and increase max by 1 (unused) |
Definition at line 2186 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().
Recover player FP.
| amt | the amount to recover, -1 for full, -2 for full and increase max by 1 (unused) |
Definition at line 2169 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().